1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/config/routes.rb
2009-10-12 09:56:12 -03:00

20 lines
597 B
Ruby

ActionController::Routing::Routes.draw do |map|
Devise.mappings.each_value do |mapping|
map.namespace mapping.name, :namespace => nil, :path_prefix => mapping.as do |m|
if mapping.allows?(:sessions)
m.resource :session,
:only => [:new, :create, :destroy]
end
if mapping.allows?(:passwords)
m.resource :password,
:only => [:new, :create, :edit, :update]
end
if mapping.allows?(:confirmations)
m.resource :confirmation,
:only => [:new, :create, :show]
end
end
end
end