lib/active_support/i18n.rb in activesupport-3.0.0.beta3 vs lib/active_support/i18n.rb in activesupport-3.0.0.beta4
- old
+ new
@@ -1,3 +1,8 @@
-require 'i18n'
+begin
+ require 'i18n'
+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
+end
I18n.load_path << "#{File.dirname(__FILE__)}/locale/en.yml"
-ActiveSupport.run_load_hooks(:i18n)
\ No newline at end of file
+ActiveSupport.run_load_hooks(:i18n)