mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Update _prefixes
override to work with Rails 4.2
This commit is contained in:
parent
6f7cd1332b
commit
8df6980c9e
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ class DeviseController < Devise.parent_controller.constantize
|
|||
# loaded before even having a request object.
|
||||
def _prefixes #:nodoc:
|
||||
@_prefixes ||= if self.class.scoped_views? && request && devise_mapping
|
||||
super.unshift("#{devise_mapping.scoped_path}/#{controller_name}")
|
||||
["#{devise_mapping.scoped_path}/#{controller_name}"] + super
|
||||
else
|
||||
super
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue