aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorTeddy Wing2015-01-23 17:29:27 -0500
committerTeddy Wing2015-01-23 17:29:27 -0500
commitd7d88ccd11cda59619fea44e14997ed21b5f9a4e (patch)
tree98d11e9d5d8f959d3fd3b1a277a87b98e51e042f /app/controllers
downloadNotes-angular-demo-d7d88ccd11cda59619fea44e14997ed21b5f9a4e.tar.bz2
Initial commit. Base Rails 4.2.0 project.
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/application_controller.rb5
-rw-r--r--app/controllers/concerns/.keep0
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