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

10 lines
416 B
Ruby
Raw Normal View History

ActionController::Routing::Routes.draw do |map|
def t(route_name)
I18n.t(route_name, :scope => [:devise, :routes], :default => route_name.to_s)
end
map.resource :session, :only => [:new, :create, :destroy], :as => t(:session)
map.resource :password, :only => [:new, :create, :edit, :update], :as => t(:password)
map.resource :confirmation, :only => [:new, :create, :show], :as => t(:confirmation)
end