diff options
author | Jack Dempsey <jack.dempsey@gmail.com> | 2010-09-13 18:46:00 -0400 |
---|---|---|
committer | Carl Lerche <carllerche@mac.com> | 2010-09-14 10:25:33 -0700 |
commit | a4278766068ee89fc910e113ef93d82071757965 (patch) | |
tree | c98540ef9c1c7d6d4300ae9163827b3f4317742b /activesupport/lib/active_support | |
parent | 0207bc7cc980e3f1d15fc59f611eff05e2e35035 (diff) | |
download | rails-a4278766068ee89fc910e113ef93d82071757965.tar.gz rails-a4278766068ee89fc910e113ef93d82071757965.tar.bz2 rails-a4278766068ee89fc910e113ef93d82071757965.zip |
require i18n in transliterate so it can run in isolated situations
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/i18n.rb | 1 | ||||
-rw-r--r-- | activesupport/lib/active_support/inflector/transliterate.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/i18n.rb b/activesupport/lib/active_support/i18n.rb index 45b9d20c01..4dd9e826e4 100644 --- a/activesupport/lib/active_support/i18n.rb +++ b/activesupport/lib/active_support/i18n.rb @@ -1,5 +1,6 @@ begin require 'i18n' + require 'lazy_load_hooks' rescue LoadError => e $stderr.puts "You don't have i18n installed in your application. Please add it to your Gemfile and run bundle install" raise e diff --git a/activesupport/lib/active_support/inflector/transliterate.rb b/activesupport/lib/active_support/inflector/transliterate.rb index bccc5425a6..40e7a0e389 100644 --- a/activesupport/lib/active_support/inflector/transliterate.rb +++ b/activesupport/lib/active_support/inflector/transliterate.rb @@ -1,5 +1,6 @@ # encoding: utf-8 require 'active_support/core_ext/string/multibyte' +require 'active_support/i18n' module ActiveSupport module Inflector |