From d7d88ccd11cda59619fea44e14997ed21b5f9a4e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 23 Jan 2015 17:29:27 -0500 Subject: Initial commit. Base Rails 4.2.0 project. --- app/controllers/application_controller.rb | 5 +++++ app/controllers/concerns/.keep | 0 2 files changed, 5 insertions(+) create mode 100644 app/controllers/application_controller.rb create mode 100644 app/controllers/concerns/.keep (limited to 'app/controllers') 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 -- cgit v1.2.3