Class: Ibrain::UserSessionsController
- Inherits:
-
Devise::SessionsController
- Object
- Devise::SessionsController
- Ibrain::UserSessionsController
- Includes:
- ActionController::Helpers, ActionController::MimeResponds, Core::ControllerHelpers::Response
- Defined in:
- lib/controllers/ibrain/user_sessions_controller.rb
Instance Method Summary collapse
- #callback ⇒ Object
-
#create ⇒ Object
before_action :configure_sign_in_params, only: [:create].
Instance Method Details
#callback ⇒ Object
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 |
#create ⇒ Object
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.sign_in sign_in(resource_name, user) if user.present? super { |resource| @resource = resource } end |