Skip to content

Commit

Permalink
Make sure Locale#load_configured_base_language is performed while loa…
Browse files Browse the repository at this point in the history
…ding in all environments
  • Loading branch information
Luca Guidi committed Aug 11, 2008
1 parent ce0dac7 commit b10bd09
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions init.rb
Expand Up @@ -10,8 +10,5 @@
Object.send :include, Globalize
require 'click_to_globalize'

# FIXME
unless ENV['RAILS_ENV'] == 'test'
Locale.load_configured_base_language
raise NoBaseLanguageError if Locale.base_language.blank?
end
Locale.load_configured_base_language
raise NoBaseLanguageError if Locale.base_language.blank?

0 comments on commit b10bd09

Please sign in to comment.