Class: Mints::BaseApiController

Inherits:
ActionController::Base
  • Object
show all
Includes:
ContactAuthHelper, MintsClients, UserAuthHelper
Defined in:
lib/mints/controllers/base_api_controller.rb

Instance Method Summary collapse

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

#define_mints_clientsObject

[View source]

16
17
18
# File 'lib/mints/controllers/base_api_controller.rb', line 16

def define_mints_clients
  %w[contact pub]
end

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

[View source]

24
25
26
# File 'lib/mints/controllers/base_api_controller.rb', line 24

def (hash)
  super(hash, true)
end