diff options
author | elijah <elijah@riseup.net> | 2015-06-15 17:14:26 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-06-15 17:14:26 -0700 |
commit | 83a9cadbb13bd2292c7d064d40721fa5f64119fb (patch) | |
tree | 294c13678a0514634a6817428d2c656738c14e52 /app/controllers/pages_controller.rb | |
parent | 12ab515ecd448f98ff006e30a93e43626183b6d0 (diff) |
added CommonLanguages gem
Diffstat (limited to 'app/controllers/pages_controller.rb')
-rw-r--r-- | app/controllers/pages_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index c477b7c..e0f39e3 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -12,7 +12,7 @@ class PagesController < ApplicationController private def page_name - request.path.sub(/^\/(#{MATCH_LOCALE}\/)?/, '') + request.path.sub(/^\/(#{CommonLanguages.match_available}\/)?/, '') end end |