mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-03-25 01:14:43 +00:00
Upgraded to Rails 5.1.1
This commit is contained in:
@@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
after_filter :set_csrf_cookie_for_ng
|
||||
after_action :set_csrf_cookie_for_ng
|
||||
|
||||
def set_csrf_cookie_for_ng
|
||||
cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
|
||||
|
||||
Reference in New Issue
Block a user