fix broken rake task (rebuild_serialized_page_templates)

This commit is contained in:
did 2011-07-18 23:11:22 +02:00
parent 9a36e85ce1
commit 53a83b5f79

View File

@ -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