blob: 5c829853b76745bc3f4012132e3463b79d664a4e (
plain) (
tree)
|
|
module ActionController
module Configuration
extend ActiveSupport::Concern
def config
@config ||= self.class.config
end
def config=(config)
@config = config
end
module ClassMethods
def default_config
@default_config ||= {}
end
def config
self.config ||= default_config
end
def config=(config)
@config = ActiveSupport::OrderedHash.new
@config.merge!(config)
end
end
end
end
|