class Rails::Application::Configuration::Custom
:nodoc:
def initialize
def initialize @configurations = Hash.new end
def method_missing(method, *args)
def method_missing(method, *args) if method.end_with?("=") @configurations[:"#{method[0..-2]}"] = args.first elsif args.empty? @configurations.fetch(method) { @configurations[method] = ActiveSupport::OrderedOptions.new } else raise ArgumentError, "wrong number of arguments (given #{args.length}, expected 0) when reading configuration `#{method}`" end end
def respond_to_missing?(symbol, _)
def respond_to_missing?(symbol, _) true end