diff options
author | Jesse Morgan <jesse@jesterpm.net> | 2015-02-25 18:39:14 -0800 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net> | 2015-02-25 18:39:14 -0800 |
commit | f031bdc3e5214c699123830d8cc9f9309b792a68 (patch) | |
tree | 03b92c94187d8866f63682a108d20c98dd913be9 /app/controllers/application_controller.rb |
rails new
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..d83690e --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,5 @@ +class ApplicationController < ActionController::Base + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. + protect_from_forgery with: :exception +end |