route with admin namespace

This commit is contained in:
Saurabh Bhatia 2014-06-04 14:38:18 +08:00
parent b19919ee78
commit 52fc6b030d
1 changed files with 5 additions and 0 deletions

View File

@ -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