diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-20 18:06:41 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-20 18:06:41 -0700 |
| commit | 1bff8ede68b131f183c96eafacb99df6c9ee514a (patch) | |
| tree | 1c6be6f9075ef519bb24b84003544a5b31fe41b4 /app/controllers | |
| parent | 734c8c53aa1821a199a76350fd7cbe3449c1193d (diff) | |
rails new .
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/application_controller.rb | 5 | ||||
| -rw-r--r-- | app/controllers/concerns/.keep | 0 |
2 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 diff --git a/app/controllers/concerns/.keep b/app/controllers/concerns/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/app/controllers/concerns/.keep |
