upgrade to mongo_mapper 0.7.0

This commit is contained in:
Wen-Tien Chang committed 2010-03-01 16:18:28 +08:00
1 parent e2a6d9fe0d
commit e87b3c1d61
4 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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