lib/config_default.rb in config_default-0.2.4 vs lib/config_default.rb in config_default-0.2.5

- old
+ new

@@ -48,12 +48,9 @@ rescue {} end def load_struct(name, key: Rails.env, recursive: false, allow_nil: false) - ConfigDefault::Struct.new( - attributes: load(name, key: key), - recursive: recursive, - allow_nil: allow_nil, - ) + attributes = load(name, key: key) + ConfigDefault::Struct.new(attributes, recursive: recursive, allow_nil: allow_nil) end end