2016-09-18 09:41:51 -05:00
|
|
|
# frozen_string_literal: true
|
2016-08-27 15:52:19 -05:00
|
|
|
class ApplicationController < ActionController::Base
|
|
|
|
protect_from_forgery with: :exception
|
2016-09-12 22:15:44 -05:00
|
|
|
|
|
|
|
before_action :verify_session
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def verify_session
|
|
|
|
redirect_to logout_path and return if session[:token].nil?
|
|
|
|
end
|
2016-08-27 15:52:19 -05:00
|
|
|
end
|