blob: c8350f9a1e758deb36bb6bc7f2fae14d959176a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# frozen_string_literal: true
class Auth::SessionsController < Devise::SessionsController
include Devise::Controllers::Rememberable
layout 'auth'
def create
super do |resource|
remember_me(resource)
end
end
protected
def after_sign_in_path_for(_resource)
last_url = stored_location_for(:user)
if [about_path].include?(last_url)
root_path
else
last_url || root_path
end
end
end
|