Skip to content

Commit

Permalink
return one record
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 31, 2011
1 parent f02c9a2 commit b20042c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/likeable/module_methods.rb
Expand Up @@ -75,7 +75,7 @@ def find_many(klass, ids)


def find_one(klass, id)
@find_one ||= lambda {|klass, ids| klass.where(:id => id)}
@find_one ||= lambda {|klass, ids| klass.where(:id => id).first}
@find_one.call(klass, id)
end

Expand Down

0 comments on commit b20042c

Please sign in to comment.