diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-20 22:53:20 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-02-20 22:53:20 +0100 |
commit | 9c4856bdb11fc9311ab30a97224cee3dfaec492f (patch) | |
tree | 37fd831e505f040bbd3c583f56d3502ebd75e9c8 /app/controllers |
Initial commit
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 000000000..d83690e1b --- /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 000000000..e69de29bb --- /dev/null +++ b/app/controllers/concerns/.keep |