Skip to content

Commit

Permalink
I18n.locale can apparently be a symbol...
Browse files Browse the repository at this point in the history
  • Loading branch information
blasdelf authored and scambra committed Mar 26, 2010
1 parent cf44987 commit 17972b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tiny_mce/configuration.rb
Expand Up @@ -8,7 +8,7 @@ class Configuration
# The default tiny_mce options. Tries it's best to determine the locale
# If the current locale doesn't have a lang in TinyMCE, default to en
def self.default_options
locale = I18n.locale[0,2] if defined?(I18n)
locale = I18n.locale.to_s[0,2] if defined?(I18n)
locale = :en unless locale && valid_langs.include?(locale)
{ 'mode' => 'textareas', 'editor_selector' => 'mceEditor',
'theme' => 'simple', 'language' => locale }
Expand Down

0 comments on commit 17972b0

Please sign in to comment.