11 lines
217 B
Ruby
11 lines
217 B
Ruby
class Api::V1::BaseController < ApplicationController
|
|
protect_from_forgery with: :null_session
|
|
|
|
before_action :destroy_session
|
|
|
|
private
|
|
|
|
def destroy_session
|
|
request.session_options[:skip] = true
|
|
end
|
|
end
|