Skip to content

Commit

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

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

0 comments on commit ad8d471

Please sign in to comment.