require "canonical-rails/engine"

module CanonicalRails

  # Default way to setup CanonicalRails. 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 :protocol
  @@protocol = nil

  mattr_accessor :collection_actions
  @@collection_actions = [:index]

  mattr_accessor :member_actions
  @@member_actions = [:show]

  mattr_accessor :whitelisted_parameters
  @@whitelisted_parameters = []

  def self.sym_collection_actions
    @@sym_collection_actions ||= self.collection_actions.map(&:to_sym)
  end

  def self.sym_whitelisted_parameters
    @@sym_whitelisted_actions ||= self.whitelisted_parameters.map(&:to_sym)
  end

end

require "canonical-rails/engine"

module CanonicalRails

  # Default way to setup CanonicalRails. 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 :protocol
  @@protocol = nil

  mattr_accessor :collection_actions
  @@collection_actions = [:index]

  mattr_accessor :whitelisted_parameters
  @@whitelisted_parameters = []

  def self.sym_collection_actions
    @@sym_collection_actions ||= self.collection_actions.map(&:to_sym)
  end

  def self.sym_whitelisted_parameters
    @@sym_whitelisted_actions ||= self.whitelisted_parameters.map(&:to_sym)
  end

end

Remove member_actions as it is not being used.
Remove member_actions as it is not being used.
