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:
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'
|
||||
|
Loading…
Reference in New Issue
Block a user