route with admin namespace

This commit is contained in:
Saurabh Bhatia 2014-06-04 14:39:21 +08:00
parent ecd92e25a2
commit d8c5de1332
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