Skip to content

Commit

Permalink
Removed protect_from_forgery line as this is done by default now, but…
Browse files Browse the repository at this point in the history
… also excluding post_data doesn't seem necessary (at least no errors occur with it gone) so potentially strengthens security.
  • Loading branch information
Dave Baldwin committed Jun 14, 2011
1 parent 21bd55b commit cfaac7e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/generators/jqgrid/templates/controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
class <%= class_name.pluralize %>Controller < ApplicationController
respond_to :html,:json
protect_from_forgery :except => [:post_data]

# Don't forget to edit routes if you're using RESTful routing
#
#resources :<%=plural_name%>,:only => [:index] do
Expand Down

0 comments on commit cfaac7e

Please sign in to comment.