diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-05 20:11:04 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-11-07 17:13:17 +0900 |
commit | 5ff034e8a27a602bd818e2bfdb6da6e794e33830 (patch) | |
tree | 58fe5ae60f833c096a1bb4b80f5ddbd601cbcefd /activerecord/lib/active_record | |
parent | 4a7679ebcad97484d3c43a3f787b18562a61613e (diff) | |
download | rails-5ff034e8a27a602bd818e2bfdb6da6e794e33830.tar.gz rails-5ff034e8a27a602bd818e2bfdb6da6e794e33830.tar.bz2 rails-5ff034e8a27a602bd818e2bfdb6da6e794e33830.zip |
adding requires for constant dependencies
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 3 | ||||
-rw-r--r-- | activerecord/lib/active_record/associations/builder/collection_association.rb | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 69b95f814c..a86e43664e 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1,6 +1,9 @@ require 'active_support/core_ext/enumerable' require 'active_support/core_ext/string/conversions' require 'active_support/core_ext/module/remove_method' +require 'active_support/dependencies/autoload' +require 'active_support/concern' +require 'active_record/errors' module ActiveRecord class InverseOfAssociationNotFoundError < ActiveRecordError #:nodoc: diff --git a/activerecord/lib/active_record/associations/builder/collection_association.rb b/activerecord/lib/active_record/associations/builder/collection_association.rb index 1b382f7285..fcdfc1e150 100644 --- a/activerecord/lib/active_record/associations/builder/collection_association.rb +++ b/activerecord/lib/active_record/associations/builder/collection_association.rb @@ -1,5 +1,8 @@ +require 'active_record/associations' + module ActiveRecord::Associations::Builder class CollectionAssociation < Association #:nodoc: + CALLBACKS = [:before_add, :after_add, :before_remove, :after_remove] def valid_options |