diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-09-24 17:29:59 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-09-24 17:29:59 -0700 |
commit | 772a32a22d71f7a22108719d88c94959ae4942b6 (patch) | |
tree | 1ecf8e5c09516149806145a5d55c710316702ab8 /activesupport/lib/active_support/vendor/i18n.rb | |
parent | 0039c0344c54423413728a92509b42fe7f37d90c (diff) | |
download | rails-772a32a22d71f7a22108719d88c94959ae4942b6.tar.gz rails-772a32a22d71f7a22108719d88c94959ae4942b6.tar.bz2 rails-772a32a22d71f7a22108719d88c94959ae4942b6.zip |
Convert the other vendored libs to avoid pulling in old gems. Works even if rubygems isn't loaded.
Diffstat (limited to 'activesupport/lib/active_support/vendor/i18n.rb')
-rw-r--r-- | activesupport/lib/active_support/vendor/i18n.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/vendor/i18n.rb b/activesupport/lib/active_support/vendor/i18n.rb index 6011253035..05c03277e3 100644 --- a/activesupport/lib/active_support/vendor/i18n.rb +++ b/activesupport/lib/active_support/vendor/i18n.rb @@ -1,6 +1,7 @@ begin - require 'i18n' -rescue LoadError - $:.unshift File.expand_path(File.join(File.dirname(__FILE__), 'i18n-0.1.3', 'lib')) - retry + gem 'i18n', '~> 0.1.3' +rescue LoadError, NoMethodError + $LOAD_PATH.unshift File.expand_path("#{File.dirname(__FILE__)}/i18n-0.1.3/lib") end + +require 'i18n' |