Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixing locale setting bug

  • Loading branch information...
commit a798aaedf8bcaa831849d06d57cb3453b5287c8c 1 parent de35622
Sam Lown authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/translate_columns.rb
2  lib/translate_columns.rb
@@ -129,7 +129,7 @@ def locale=(locale)
129 129 @disable_translation = false
130 130 # TODO some checks for available translations would be nice.
131 131 # I18n.available_locales only available as standard with rails 2.3
132   - @locale = locale.nil? ? nil : locale.to_s
  132 + @locale = locale.to_s.empty? ? nil : locale.to_s
133 133 end
134 134
135 135 # Do not allow translations!

0 comments on commit a798aae

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