Permalink
Browse files

oops

  • Loading branch information...
1 parent 5188041 commit f21e54f60d1ef3c58188d3cd70b528d37cf9c777 Bantik committed Feb 25, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/faceted/has_object.rb
View
2 lib/faceted/has_object.rb
@@ -75,7 +75,7 @@ def initialize_with_object
def object
return unless self.class.klass
- @object ||= self.class.klass.where(find_by => self.send(find_by)) || self.class.klass.new
+ @object ||= self.class.klass.where(find_by => self.send(find_by)).first || self.class.klass.new
end
def object=(obj)

0 comments on commit f21e54f

Please sign in to comment.