From 7d30d00ec4c35b0560409401072481fe9d19d455 Mon Sep 17 00:00:00 2001 From: Dirk Kelly Date: Tue, 1 Feb 2011 17:05:36 +0800 Subject: [PATCH] minimal attributes to include listed --- app/models/page.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/page.rb b/app/models/page.rb index 42b15096..a5a06d51 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -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 ##