lib/hanami/entity.rb in hanami-model-0.7.0 vs lib/hanami/entity.rb in hanami-model-1.0.0.beta1

- old
+ new

@@ -139,10 +139,10 @@ # If internal attributes set has the requested key, it returns the linked # value, otherwise it raises a <tt>NoMethodError</tt> # # @since 0.7.0 def method_missing(m, *) - attribute?(m) or super # rubocop:disable Style/AndOr + attribute?(m) or super attributes.fetch(m, nil) end # Implement generic equality for entities #