minimal attributes to include listed
This commit is contained in:
parent
1c91bfb673
commit
7d30d00ec4
@ -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 ##
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user