lib/alba/one.rb in alba-0.2.0 vs lib/alba/one.rb in alba-0.3.0

- old
+ new

@@ -7,10 +7,10 @@ @block = block raise ArgumentError, 'resource or block is required' if @resource.nil? && @block.nil? end def to_hash(target) - object = target.__send__(@name) + object = target.public_send(@name) @resource ||= resource_class @resource.new(object).to_hash end private