Skip to content

Commit d9f6ad2

Browse files
Define after_sign_in_path_for Devise inside the gem to use the main app root URL
1 parent b60a025 commit d9f6ad2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
module OmbuLabs
22
module Auth
33
class ApplicationController < ActionController::Base
4+
def after_sign_in_path_for(resource)
5+
request.base_url
6+
end
47
end
58
end
69
end

0 commit comments

Comments
 (0)