1
0
Fork 0
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:
sobrinho 2009-11-24 06:44:42 +08:00 committed by José Valim
parent 966b48c414
commit a2224fb151

View file

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