diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-19 17:38:29 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-19 17:38:29 -0300 |
commit | 299c2645525d4f82e72a3abdbef6b20decf04fee (patch) | |
tree | efe6c37cfc0777484df8b0ae98dd299025805260 /railties | |
parent | a5d50ac1477bda03df42f147a64f6dbdf1b79e95 (diff) | |
download | rails-299c2645525d4f82e72a3abdbef6b20decf04fee.tar.gz rails-299c2645525d4f82e72a3abdbef6b20decf04fee.tar.bz2 rails-299c2645525d4f82e72a3abdbef6b20decf04fee.zip |
We always get the value so no need to check nil or Hash
Diffstat (limited to 'railties')
-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) |