Class: Mints::BaseApiController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Mints::BaseApiController
- Includes:
- ContactAuthHelper, MintsClients, UserAuthHelper
- Defined in:
- lib/mints/controllers/base_api_controller.rb
Instance Method Summary collapse
- #define_mints_clients ⇒ Object
-
#mints_contact_magic_link_login(hash) ⇒ Object
Mints contact Login.
Methods included from UserAuthHelper
#mints_user_login, #mints_user_logout, #mints_user_magic_link_login, #mints_user_signed_in?
Methods included from ContactAuthHelper
#mints_contact_login, #mints_contact_logout, #mints_contact_signed_in?
Instance Method Details
permalink #define_mints_clients ⇒ Object
[View source]
16 17 18 |
# File 'lib/mints/controllers/base_api_controller.rb', line 16 def define_mints_clients %w[contact pub] end |
permalink #mints_contact_magic_link_login(hash) ⇒ Object
Mints contact Login.
This method works to override the base to add the redirect parameter The main method is located in contact_auth_helper.rb
24 25 26 |
# File 'lib/mints/controllers/base_api_controller.rb', line 24 def mints_contact_magic_link_login(hash) super(hash, true) end |