Fix broken setup path names and use path names in warden
This commit is contained in:
parent
4fd5d0913e
commit
bc825d3b23
|
@ -50,7 +50,7 @@ Warden::Strategies.add(:authenticable) do
|
|||
success!(resource)
|
||||
else
|
||||
store_location
|
||||
redirect!("/#{@mapping.as}/sign_in", :unauthenticated => true)
|
||||
redirect!("/#{@mapping.as}/#{@mapping.path_names[:sign_in]}", :unauthenticated => true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ module Devise
|
|||
@klass = (options[:class_name] || name.to_s.classify).to_s
|
||||
@name = (options[:singular] || name.to_s.singularize).to_sym
|
||||
@path_names = options[:path_names] || {}
|
||||
|
||||
setup_path_names
|
||||
end
|
||||
|
||||
# Return modules for the mapping.
|
||||
|
|
Loading…
Reference in New Issue