lib/representable/hash/collection.rb in representable-1.6.1 vs lib/representable/hash/collection.rb in representable-1.7.0
- old
+ new
@@ -10,10 +10,10 @@
end
module ClassMethods
def items(options)
- collection :_self, options
+ collection :_self, options.merge(:getter => lambda { |*| self })
end
end
def create_representation_with(doc, options, format)