1
0
Fork 0
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:
Lucas Mazza 2014-06-24 10:06:45 -03:00
parent 6f7cd1332b
commit 8df6980c9e

View file

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