Class: Notee::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Notee::ApplicationController
show all
- Defined in:
- app/controllers/notee/application_controller.rb
Instance Method Summary
collapse
Instance Method Details
#restrict_access_json ⇒ Object
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_filter ⇒ Object
6
7
8
|
# File 'app/controllers/notee/application_controller.rb', line 6
def set_request_filter
Thread.current[:request] = request
end
|