mirror of
https://github.com/heartcombo/devise.git
synced 2026-01-10 08:08:00 -05:00
Merge pull request #3463 from LunarLogic/master
Extracted route to separate method to be able to override in child class
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user