links/config/routes.rb

13 lines
261 B
Ruby
Raw Normal View History

2014-05-05 08:20:37 +00:00
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
2014-05-05 11:33:35 +00:00
namespace :admin do
resources :web_resources
end
2014-05-05 08:20:37 +00:00
end
end