Permalink
Browse files

We always get the value so no need to check nil or Hash

  • Loading branch information...
1 parent a5d50ac commit 299c2645525d4f82e72a3abdbef6b20decf04fee @rafaelfranca rafaelfranca committed Aug 19, 2014
Showing with 2 additions and 6 deletions.
  1. +2 −6 railties/lib/rails/railtie/configuration.rb
@@ -104,12 +104,8 @@ def method_missing(name, *args, &blk)
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)

0 comments on commit 299c264

Please sign in to comment.