forked from saurabh/personal-lab
route with admin namespace
This commit is contained in:
parent
b19919ee78
commit
52fc6b030d
|
@ -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