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 committed Mar 26, 2010
1 parent 58fffef commit 10e1b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tiny_mce/configuration.rb
Expand Up @@ -9,7 +9,7 @@ class Configuration
'mode' => 'textareas',
'editor_selector' => 'mceEditor',
'theme' => 'simple',
'language' => (defined?(I18n) ? I18n.locale[0,2] : :en)
'language' => (defined?(I18n) ? I18n.locale.to_s[0,2] : :en)
}

def self.config_file_options
Expand Down

0 comments on commit 10e1b72

Please sign in to comment.