fix broken rake task (rebuild_serialized_page_templates)
This commit is contained in:
parent
9a36e85ce1
commit
53a83b5f79
@ -12,7 +12,7 @@ namespace :locomotive do
|
||||
end
|
||||
|
||||
desc 'Rebuild the serialized template of all the site pages'
|
||||
task :rebuild_serialized_page_templates do
|
||||
task :rebuild_serialized_page_templates => :environment do
|
||||
Page.all.each do |page|
|
||||
next unless page.template.nil?
|
||||
page.send :_parse_and_serialize_template
|
||||
|
Loading…
Reference in New Issue
Block a user