Class: RedBase::APIController

Inherits:
ApplicationController show all
Defined in:
app/controllers/red_base/api_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#set_locale

Instance Method Details



31
32
33
# File 'app/controllers/red_base/api_controller.rb', line 31

def set_csrf_cookie_for_ng
  cookies['XSRF-TOKEN'] = form_authenticity_token if protect_against_forgery?
end