Sha256: 9f47c99cc12ef0fb6d1c51543950995657f4e36fbcf6b9fca7bc1bb59f093a0c

Contents?: true

Size: 215 Bytes

Versions: 4

Compression:

Stored size: 215 Bytes

Contents

Rails.application.routes.draw do
  # Add your extension routes here
  match '/:locale/(*return_path)' => 'locale#set', :constraints => {:locale => /\b#{I18n.enabled_locales.join('|')}\b/}, :as => :change_locale
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_change_locale-0.5.3 config/routes.rb
spree_change_locale-0.5.2 config/routes.rb
spree_change_locale-0.5.1 config/routes.rb
spree_change_locale-0.5 config/routes.rb