upgrade to mongo_mapper 0.7.0
This commit is contained in:
parent
e2a6d9fe0d
commit
e87b3c1d61
|
@ -10,7 +10,7 @@ class Admin::AssetsController < ApplicationController
|
|||
end
|
||||
|
||||
def index
|
||||
@assets = Asset.find(:all)
|
||||
@assets = Asset.all
|
||||
end
|
||||
|
||||
def edit
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue