Class: Notee::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/notee/application_controller.rb

Instance Method Summary collapse

Instance Method Details

#restrict_access_jsonObject



10
11
12
13
# File 'app/controllers/notee/application_controller.rb', line 10

def restrict_access_json
  return redirect_to new_token_path unless confirm_exist_token
  return redirect_to new_token_path unless confirm_expired_token
end

#set_request_filterObject



6
7
8
# File 'app/controllers/notee/application_controller.rb', line 6

def set_request_filter
  Thread.current[:request] = request
end