upgrade to mongo_mapper 0.7.0

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

View File

@ -10,7 +10,7 @@ class Admin::AssetsController < ApplicationController
end
def index
@assets = Asset.find(:all)
@assets = Asset.all
end
def edit

View File

@ -1,7 +1,7 @@
class AnnouncementsController < ApplicationController
def index
@announcements = Announcement.find(:all, :conditions => { :entry_name => params[:entry_name] })
@announcements = Announcement.all( :conditions => { :entry_name => params[:entry_name] })
respond_to do |format|
format.html {

View File

@ -5,7 +5,7 @@ class Panel::AnnouncementsController < ApplicationController
layout "admin"
def index
@announcements = Announcement.find(:all, :conditions => { :entry_name => params[:entry_name] })
@announcements = Announcement.all( :conditions => { :entry_name => params[:entry_name] })
end
def new

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