Class: Ibrain::UserSessionsController

Inherits:
Devise::SessionsController
  • Object
show all
Includes:
ActionController::Helpers, ActionController::MimeResponds, Core::ControllerHelpers::Response
Defined in:
lib/controllers/ibrain/user_sessions_controller.rb

Instance Method Summary collapse

Instance Method Details

#callbackObject



17
18
19
20
21
# File 'lib/controllers/ibrain/user_sessions_controller.rb', line 17

def callback
  user = line_repo.find_or_initialize!

  render_json_ok(user, nil)
end

#createObject

before_action :configure_sign_in_params, only: [:create]



10
11
12
13
14
15
# File 'lib/controllers/ibrain/user_sessions_controller.rb', line 10

def create
  user = repo.
  (resource_name, user) if user.present?

  super { |resource| @resource = resource }
end