app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def check_external_identifier(user, only_build=false)
      if session[:external_identifier]
        exid = user.external_identifiers.build(:identifier => session[:external_identifier], :provider => session[:provider])
        exid.save! unless only_build
        session[:external_identifier] = nil
        session[:provider] = nil
        exid
      end
    end
def check_external_identifier ( user , only_build = false ) if session [ :external_identifier ] exid = user . external_identifiers . build ( :identifier => session [ :external_identifier ] , :provider => session [ :provider ] ) exid . save! unless only_build session [ :external_identifier ] = nil session [ :provider ] = nil exid end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .
user
<not_specific>
only_build
<not_specific>