minimal attributes to include listed

This commit is contained in:
Dirk Kelly 2011-02-01 17:05:36 +08:00
parent 1c91bfb673
commit 7d30d00ec4

View File

@ -43,7 +43,7 @@ class Page
scope :not_found, :where => { :slug => '404', :depth => 0 }
scope :published, :where => { :published => true }
scope :fullpath, lambda { |fullpath| { :where => { :fullpath => fullpath } } }
scope :minimal_attributes, :only => %w(title slug fullpath position depth published templatized parent_id created_at updated_at)
scope :minimal_attributes, :only => %w(title slug fullpath position depth published templatized listed parent_id created_at updated_at)
## methods ##