mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Fix issue when using namespace name as symbol like map.namespace :admin
This commit is contained in:
parent
966b48c414
commit
a2224fb151
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ module Devise
|
|||
@klass = (options.delete(:class_name) || name.to_s.classify).to_s
|
||||
@name = (options.delete(:scope) || name.to_s.singularize).to_sym
|
||||
@path_names = options.delete(:path_names) || {}
|
||||
@path_prefix = options.delete(:path_prefix) || ""
|
||||
@path_prefix = options.delete(:path_prefix).to_s
|
||||
@path_prefix << "/" unless @path_prefix[-1] == ?/
|
||||
@route_options = options || {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue