Permalink
Browse files

skip forgery protection for Admin::PagesController#preview

  • Loading branch information...
1 parent 133ddae commit b345b5c0d68a1df0c281bc0a5757d86f4988ce46 @blj blj committed Feb 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 b345b5c

Please sign in to comment.