mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Extracted route to separate method to be able to override in child class
This commit is contained in:
parent
a2e0e9c187
commit
8461234483
1 changed files with 5 additions and 1 deletions
|
@ -105,9 +105,13 @@ module Devise
|
|||
end
|
||||
end
|
||||
|
||||
def route(scope)
|
||||
:"new_#{scope}_session_url"
|
||||
end
|
||||
|
||||
def scope_url
|
||||
opts = {}
|
||||
route = :"new_#{scope}_session_url"
|
||||
route = route(scope)
|
||||
opts[:format] = request_format unless skip_format?
|
||||
|
||||
config = Rails.application.config
|
||||
|
|
Loading…
Reference in a new issue