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