Register cancel route so a shortcut is created.

This commit is contained in:
José Valim
2010-07-15 22:00:20 +02:00
parent ac8221aca7
commit adba4e2262
2 changed files with 2 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ Devise.with_options :model => true do |d|
# Misc after
routes = [nil, :new, :edit]
d.add_module :recoverable, :controller => :passwords, :route => { :password => routes }
d.add_module :registerable, :controller => :registrations, :route => { :registration => routes }
d.add_module :registerable, :controller => :registrations, :route => { :registration => (routes << :cancel) }
d.add_module :validatable
# The ones which can sign out after