Class: Mori::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Mori::BaseController
- Defined in:
- app/controllers/mori/base_controller.rb
Overview
This controller is used as a baseline for all Mori Controllers
Direct Known Subclasses
InvitesController, PasswordsController, RegistrationsController, SessionsController
Instance Method Summary collapse
Instance Method Details
#mori_config ⇒ Object
7 8 9 |
# File 'app/controllers/mori/base_controller.rb', line 7 def mori_config @config = Mori.configuration end |
#set_token ⇒ Object
10 11 12 13 14 15 |
# File 'app/controllers/mori/base_controller.rb', line 10 def set_token token, user = params[:token], params[:user] if token or user @token = token || user[:token] end end |