adds missing requires for arel and i18n, prevents Arel constant from being autoloaded (which was still seen), though it probably hides an issue related to dependencies

This commit is contained in:
Xavier Noria 2010-04-14 02:01:55 -07:00
parent 9a4fdff0af
commit dd635ec701

@ -30,6 +30,8 @@
require 'active_support'
require 'active_model'
require 'arel'
require 'i18n'
module ActiveRecord
extend ActiveSupport::Autoload
@ -117,4 +119,4 @@ module ConnectionAdapters
Arel::Table.engine = Arel::Sql::Engine.new(self)
end
I18n.load_path << File.dirname(__FILE__) + '/active_record/locale/en.yml'
I18n.load_path << File.dirname(__FILE__) + '/active_record/locale/en.yml'