Skip to content

Commit

Permalink
use self in #write.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Jan 20, 2012
1 parent 40655ac commit f9509fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/representable/json/collection.rb
Expand Up @@ -19,8 +19,7 @@ def items(options)

def create_representation_with(doc, options, format)
bin = representable_bindings_for(format).first
value = find_all { true }
bin.write(doc, value)
bin.write(doc, self)
end

def update_properties_from(doc, options, format)
Expand Down

0 comments on commit f9509fa

Please sign in to comment.