1
0
Fork 0
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:
José Valim 2009-12-14 22:04:28 +01:00
parent 3432c9eef4
commit b8c216e0db

View file

@ -100,7 +100,7 @@ module Devise
def render_with_scope(action)
if Devise.scoped_views
begin
render :template => "sessions/#{devise_mapping.as}/#{action}"
render :template => "#{controller_name}/#{devise_mapping.as}/#{action}"
rescue ActionView::MissingTemplate
render action
end