Sha256: da54782427cf0b428f9cb8ddbfd69c29e4834ba15b7e7edb1c812ed0a2b4a258
Contents?: true
Size: 448 Bytes
Versions: 7
Compression:
Stored size: 448 Bytes
Contents
Rails.application.routes.draw do root to: redirect("/#{I18n.default_locale}/info/index") mount StaticBlocks::Engine => "/static_blocks_admin" scope ":locale", locale: /#{I18n.available_locales.join("|")}/ do get "info/index" end match '*path', to: redirect("/#{I18n.default_locale}/%{path}"), constraints: lambda { |req| !req.path.starts_with? "/#{I18n.default_locale}/" } match '', to: redirect("/#{I18n.default_locale}") end
Version data entries
7 entries across 7 versions & 1 rubygems