upgrade to mongo_mapper 0.7.0
This commit is contained in:
1 parent
e2a6d9fe0d
commit
e87b3c1d61
4 files changed
+4
-4
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ class Item
|
||||
end
|
||||
|
||||
def self.find_by_name(item_name)
|
||||
Item.find(:first, :conditions => { :name => item_name, :is_published => true })
|
||||
Item.first(:conditions => { :name => item_name, :is_published => true })
|
||||
end
|
||||
|
||||
def ancestors
|
||||
|
||||
Reference in new issue
Block a user