Export the is_published column so we can keep track of the pages that aren't live yet
Ryan Garver
committed Mar 10, 2011
commit deb120471bd71595a0d2ac741090bbd1ccd52313
Showing 1
changed file with
2 additions
and 2 deletions
tasks/comfortable_mexican_sofa.rake b/lib/tasks/comfortable_mexican_sofa.rake
+2
-2
| @@ | @@ -238,7 +238,7 @@ namespace :comfortable_mexican_sofa do |
| end | |
| if should_write | |
| - | attributes = page.attributes.slice('label', 'slug', 'full_path') |
| + | attributes = page.attributes.slice('label', 'slug', 'full_path', 'is_published') |
| attributes['parent'] = page.parent.full_path if page.parent | |
| attributes['cms_layout'] = page.cms_layout.slug | |
| attributes['cms_blocks_attributes'] = page.cms_blocks_attributes.collect{|b| b.delete(:id) && b.stringify_keys} | |
| @@ | @@ -280,4 +280,4 @@ namespace :comfortable_mexican_sofa do |
| task :all => [:layouts, :pages, :snippets] | |
| end | |
| - | end |
| \ No newline at end of file | |
| + | end |