diff options
author | Rick Martinez <rick@flavorpill.com> | 2012-02-10 17:35:22 -0500 |
---|---|---|
committer | Rick Martinez <rick@flavorpill.com> | 2012-02-10 17:35:22 -0500 |
commit | 30b6d4f7f16af78e3b361b8c52fcddca64cf9190 (patch) | |
tree | f1c57c0f275d46156fc31e626b309c95d7bf15b0 /activerecord/test/models | |
parent | 6728191494a3ee1248e86d4b96d7973299675827 (diff) | |
download | rails-30b6d4f7f16af78e3b361b8c52fcddca64cf9190.tar.gz rails-30b6d4f7f16af78e3b361b8c52fcddca64cf9190.tar.bz2 rails-30b6d4f7f16af78e3b361b8c52fcddca64cf9190.zip |
added test for #3732
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/arunit2_model.rb | 3 | ||||
-rw-r--r-- | activerecord/test/models/college.rb | 5 | ||||
-rw-r--r-- | activerecord/test/models/course.rb | 5 |
3 files changed, 12 insertions, 1 deletions
diff --git a/activerecord/test/models/arunit2_model.rb b/activerecord/test/models/arunit2_model.rb new file mode 100644 index 0000000000..04b8b15d3d --- /dev/null +++ b/activerecord/test/models/arunit2_model.rb @@ -0,0 +1,3 @@ +class ARUnit2Model < ActiveRecord::Base + self.abstract_class = true +end diff --git a/activerecord/test/models/college.rb b/activerecord/test/models/college.rb new file mode 100644 index 0000000000..c7495d7deb --- /dev/null +++ b/activerecord/test/models/college.rb @@ -0,0 +1,5 @@ +require_dependency 'models/arunit2_model' + +class College < ARUnit2Model + has_many :courses +end diff --git a/activerecord/test/models/course.rb b/activerecord/test/models/course.rb index 8a40fa740d..f3d0e05ff7 100644 --- a/activerecord/test/models/course.rb +++ b/activerecord/test/models/course.rb @@ -1,3 +1,6 @@ -class Course < ActiveRecord::Base +require_dependency 'models/arunit2_model' + +class Course < ARUnit2Model + belongs_to :college has_many :entrants end |