summaryrefslogtreecommitdiff
path: root/app/controllers/api/api_controller.rb
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2015-02-09 20:36:18 -0700
committermo khan <mo@mokhan.ca>2015-02-09 20:36:18 -0700
commit41c8858025eb14cab34635b058ccf761dd04eb90 (patch)
tree092eebd37ce516b81b248507e82ead59dc63a07b /app/controllers/api/api_controller.rb
parent34f53efff788b7558f63d973aad1f3475c27c125 (diff)
use api controller and log errors in fake agent.
Diffstat (limited to 'app/controllers/api/api_controller.rb')
-rw-r--r--app/controllers/api/api_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/api/api_controller.rb b/app/controllers/api/api_controller.rb
new file mode 100644
index 0000000..0316222
--- /dev/null
+++ b/app/controllers/api/api_controller.rb
@@ -0,0 +1,5 @@
+module Api
+ class ApiController < ApplicationController
+ protect_from_forgery with: :null_session
+ end
+end