1
0
Fork 0
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:
Ania Slimak 2015-02-12 13:07:57 +01:00
parent a2e0e9c187
commit 8461234483

View file

@ -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