20 lines
485 B
Ruby
20 lines
485 B
Ruby
|
Rails.application.routes.draw do
|
||
|
locales = Site.find_by(site_active: true).in_use_locales rescue I18n.available_locales
|
||
|
scope "(:locale)", locale: Regexp.new(locales.join("|")) do
|
||
|
namespace :admin do
|
||
|
resources :memberlogs
|
||
|
resources :dayoffs
|
||
|
|
||
|
resources :members do
|
||
|
collection do
|
||
|
scope '(:name-:uid)' do
|
||
|
resources :memberlogs
|
||
|
resources :dayoffs
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|