route with admin namespace
This commit is contained in:
parent
ecd92e25a2
commit
d8c5de1332
|
@ -1,2 +1,7 @@
|
|||
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
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue