lib/phlexi/field/structure/namespace.rb in phlexi-field-0.0.4 vs lib/phlexi/field/structure/namespace.rb in phlexi-field-0.0.5

- old
+ new

@@ -106,10 +106,10 @@ # # This method could be overwritten if the mapping between the `@object` and `key` name is not # a method call. For example, a `Hash` would be accessed via `user[:email]` instead of `user.send(:email)` def object_value_for(key:) return @object.send(key) if @object.respond_to?(key) - @object.fetch(key) if @object.is_a?(Hash) + @object[key] if @object.is_a?(Hash) end private # Checks if the child exists. If it does then it returns that. If it doesn't, it will