summaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-06-15 17:14:26 -0700
committerelijah <elijah@riseup.net>2015-06-15 17:14:26 -0700
commit83a9cadbb13bd2292c7d064d40721fa5f64119fb (patch)
tree294c13678a0514634a6817428d2c656738c14e52 /engines
parent12ab515ecd448f98ff006e30a93e43626183b6d0 (diff)
added CommonLanguages gem
Diffstat (limited to 'engines')
-rw-r--r--engines/billing/config/routes.rb2
-rw-r--r--engines/support/config/routes.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/billing/config/routes.rb b/engines/billing/config/routes.rb
index 7263dff..6bbe501 100644
--- a/engines/billing/config/routes.rb
+++ b/engines/billing/config/routes.rb
@@ -1,6 +1,6 @@
Rails.application.routes.draw do
- scope "(:locale)", :locale => MATCH_LOCALE do
+ scope "(:locale)", :locale => CommonLanguages.match_available do
match 'payments/new' => 'payments#new', :as => :new_payment
match 'payments/confirm' => 'payments#confirm', :as => :confirm_payment
resources :users do
diff --git a/engines/support/config/routes.rb b/engines/support/config/routes.rb
index ca471b3..81bdf9a 100644
--- a/engines/support/config/routes.rb
+++ b/engines/support/config/routes.rb
@@ -1,5 +1,5 @@
Rails.application.routes.draw do
- scope "(:locale)", locale: MATCH_LOCALE do
+ scope "(:locale)", locale: CommonLanguages.match_available do
resources :tickets, except: :edit do
member do