Skip to content
Browse files

Revert "skip forgery protection for Admin::PagesController#preview"

This reverts commit b345b5c.
  • Loading branch information...
1 parent b345b5c commit ddaa1433a6e1ffc3cd1718b3b026e2dfeb6db757 @blj committed Feb 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/admin/pages_controller.rb
View
2 app/controllers/admin/pages_controller.rb
@@ -1,7 +1,7 @@
class Admin::PagesController < Admin::ResourceController
before_filter :initialize_meta_rows_and_buttons, :only => [:new, :edit, :create, :update]
before_filter :count_deleted_pages, :only => [:destroy]
- skip_before_filter :verify_authenticity_token, :only => [:preview]
+
class PreviewStop < ActiveRecord::Rollback
def message
'Changes not saved!'

0 comments on commit ddaa143

Please sign in to comment.
Something went wrong with that request. Please try again.