Skip to content
This repository
Browse code

removed config default locale

  • Loading branch information...
commit 75b35cacb044d54744c3cedc982dcec73bf2c1b0 1 parent 2f20a06
Bounmy Stéphane authored December 25, 2012
2  app/controllers/controller_helpers_decorator.rb
@@ -12,7 +12,7 @@
12 12
   # or Rails.application.config.i18n.default_locale
13 13
 
14 14
   def set_user_language
15  
-    locale = params[:locale] || session[:locale] || I18n.locale || Spree::Config[:default_locale] || Rails.application.config.i18n.default_locale
  15
+    locale = params[:locale] || session[:locale] || I18n.locale || Rails.application.config.i18n.default_locale
16 16
     locale = I18n.default_locale unless locale && I18n.available_locales.include?(locale.to_sym)
17 17
     I18n.locale = locale.to_sym
18 18
   end

0 notes on commit 75b35ca

Please sign in to comment.
Something went wrong with that request. Please try again.