Sha256: 4de726b7146c1877c84c5a6676a91b20db757ede57873e1f7fe7bdf71c230c51
Contents?: true
Size: 1014 Bytes
Versions: 1
Compression:
Stored size: 1014 Bytes
Contents
require "zhulei-canonical-rails/engine" module ZhuleiCanonicalRails # Default way to setup ZhuleiCanonicalRails. Run `rails g canonical_rails:install` to create # a fresh initializer with all configuration values. # # the config\setup concept politely observed at and borrowed from Devise: https://github.com/plataformatec/devise/blob/master/lib/devise.rb def self.setup yield self end mattr_accessor :host @@host = nil mattr_accessor :port @@port = nil mattr_accessor :protocol @@protocol = nil mattr_accessor :collection_actions @@collection_actions = [:index] mattr_accessor :whitelisted_parameters @@whitelisted_parameters = [] mattr_accessor :opengraph_url @@opengraph_url = false def self.sym_collection_actions @@sym_collection_actions ||= self.collection_actions.map(&:to_sym) end def self.sym_whitelisted_parameters @@sym_whitelisted_parameters ||= self.whitelisted_parameters.map(&:to_sym) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zhulei-canonical-rails-1.0.1 | lib/zhulei-canonical-rails.rb |