Skip to content
Browse files

Fixing locale setting bug

  • Loading branch information...
1 parent de35622 commit a798aaedf8bcaa831849d06d57cb3453b5287c8c @samlown committed Jun 27, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/translate_columns.rb
View
2 lib/translate_columns.rb
@@ -129,7 +129,7 @@ def locale=(locale)
@disable_translation = false
# TODO some checks for available translations would be nice.
# I18n.available_locales only available as standard with rails 2.3
- @locale = locale.nil? ? nil : locale.to_s
+ @locale = locale.to_s.empty? ? nil : locale.to_s
end
# Do not allow translations!

0 comments on commit a798aae

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