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 end
def index def index
@assets = Asset.find(:all) @assets = Asset.all
end end
def edit def edit

View File

@ -1,7 +1,7 @@
class AnnouncementsController < ApplicationController class AnnouncementsController < ApplicationController
def index 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| respond_to do |format|
format.html { format.html {

View File

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

View File

@ -28,7 +28,7 @@ class Item
end end
def self.find_by_name(item_name) 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 end
def ancestors def ancestors