lib/hanami/entity.rb in hanami-model-1.2.0.rc1 vs lib/hanami/entity.rb in hanami-model-1.2.0.rc2
- old
+ new
@@ -138,12 +138,12 @@
#
# 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
- attributes.fetch(m, nil)
+ def method_missing(method_name, *)
+ attribute?(method_name) or super
+ attributes.fetch(method_name, nil)
end
# Implement generic equality for entities
#
# Two entities are equal if they are instances of the same class and they