diff options
-rw-r--r-- | railties/lib/rails/railtie/configuration.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/railties/lib/rails/railtie/configuration.rb b/railties/lib/rails/railtie/configuration.rb index 406ed5ac61..c15cc1a144 100644 --- a/railties/lib/rails/railtie/configuration.rb +++ b/railties/lib/rails/railtie/configuration.rb @@ -104,12 +104,8 @@ module Rails end class ChainedConfigurationOptions < ActiveSupport::OrderedOptions # :nodoc: - def initialize(value = nil) - if value.is_a?(Hash) - value.each_pair { |k, v| set_value k, v } - else - super - end + def initialize(value) + value.each_pair { |k, v| set_value k, v } end def method_missing(meth, *args) |