app/controllers/pulitzer/posts_controller.rb in pulitzer-0.15.25 vs app/controllers/pulitzer/posts_controller.rb in pulitzer-0.15.26

- old
+ new

@@ -94,8 +94,12 @@ params[:post].permit! end def get_post @post = Pulitzer::Post.find(params[:id]) + if @post.preview_version.blank? + preview_rebuilder = Pulitzer::PostsController::PreviewRebuilder.new(@post) + preview_rebuilder.rebuild + end end end