summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-02-19 22:39:48 +0100
committerhukl <contact@smyck.org>2009-02-19 22:39:48 +0100
commit632b3a03d732ae735b2efd1999e14c649bf35b77 (patch)
tree466b170dccd5acdc0dd797273f720be382fcdc39 /app/controllers/application_controller.rb
parent2075543807ba90d82aaf0c841ba962bbbc034b1c (diff)
small enhancement for the locale filter
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 3ee43d4..d624c89 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -15,6 +15,6 @@ class ApplicationController < ActionController::Base
15 protected 15 protected
16 16
17 def set_locale 17 def set_locale
18 I18n.locale = params[:locale] || :en 18 I18n.locale = params[:locale].to_sym if params[:locale]
19 end 19 end
20end 20end