Skip to content

Commit f51ae5f

Browse files
committed
Null session
1 parent 1ba79bc commit f51ae5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class ApplicationController < ActionController::Base
22
# Prevent CSRF attacks by raising an exception.
33
# For APIs, you may want to use :null_session instead.
4-
# protect_from_forgery with: :exception
4+
protect_from_forgery with: :null_session
55

66
helper_method :current_user
77

0 commit comments

Comments
 (0)