lib/likeable/module_methods.rb in likeable-0.0.3 vs lib/likeable/module_methods.rb in likeable-0.0.4
- old
+ new
@@ -73,10 +73,10 @@
@find_many.call(klass, ids)
end
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
def find_one=(find_one)
@find_one = find_one
\ No newline at end of file