lib/grape_entity/delegator/hash_object.rb in grape-entity-0.7.1 vs lib/grape_entity/delegator/hash_object.rb in grape-entity-0.8.0

- old
+ new

@@ -2,11 +2,11 @@ module Grape class Entity module Delegator class HashObject < Base - def delegate(attribute) - object[attribute] + def delegate(attribute, hash_access: :to_sym) + object[attribute.send(hash_access)] end end end end end