mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Remove hardcoded sessions.
This commit is contained in:
parent
3432c9eef4
commit
b8c216e0db
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ module Devise
|
||||||
def render_with_scope(action)
|
def render_with_scope(action)
|
||||||
if Devise.scoped_views
|
if Devise.scoped_views
|
||||||
begin
|
begin
|
||||||
render :template => "sessions/#{devise_mapping.as}/#{action}"
|
render :template => "#{controller_name}/#{devise_mapping.as}/#{action}"
|
||||||
rescue ActionView::MissingTemplate
|
rescue ActionView::MissingTemplate
|
||||||
render action
|
render action
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue