1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

add a test that :module => :devise overrides previous configs.

This commit is contained in:
José Valim 2012-01-02 22:47:28 +01:00
parent 897c1c684e
commit 18dc82c6b6

View file

@ -64,14 +64,14 @@ Rails.application.routes.draw do
devise_for :accounts, :class_name => "Admin", :path_names => { :sign_in => "get_in" }
end
scope ":locale" do
scope ":locale", :module => :invalid do
devise_for :accounts, :singular => "manager", :class_name => "Admin",
:path_names => {
:sign_in => "login", :sign_out => "logout",
:password => "secret", :confirmation => "verification",
:unlock => "unblock", :sign_up => "register",
:registration => "management", :cancel => "giveup"
}, :failure_app => lambda { |env| [404, {"Content-Type" => "text/plain"}, ["Oops, not found"]] }
}, :failure_app => lambda { |env| [404, {"Content-Type" => "text/plain"}, ["Oops, not found"]] }, :module => :devise
end
namespace :sign_out_via, :module => "devise" do