diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-03 11:13:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-03 11:13:55 -0700 |
commit | 838be5266dc708a18cb900afb547596a4bd935ff (patch) | |
tree | 9f423569f5fc333d07cca6aed2dd21c634b3907e /activerecord/test/models/company.rb | |
parent | 680464bd2f436eedb13bfb9dc24311df9fa679f1 (diff) | |
parent | 68421f330b50f39ff58148dc2e734597be8abeef (diff) | |
download | rails-838be5266dc708a18cb900afb547596a4bd935ff.tar.gz rails-838be5266dc708a18cb900afb547596a4bd935ff.tar.bz2 rails-838be5266dc708a18cb900afb547596a4bd935ff.zip |
Merge pull request #12435 from sikachu/master-port-12084
Port test from cf1904f to avoid future regression
Diffstat (limited to 'activerecord/test/models/company.rb')
-rw-r--r-- | activerecord/test/models/company.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/company.rb b/activerecord/test/models/company.rb index 1aa77f95bf..0b0b304121 100644 --- a/activerecord/test/models/company.rb +++ b/activerecord/test/models/company.rb @@ -11,6 +11,11 @@ class Company < AbstractCompany has_many :contracts has_many :developers, :through => :contracts + scope :of_first_firm, lambda { + joins(:account => :firm). + where('firms.id' => 1) + } + def arbitrary_method "I am Jack's profound disappointment" end |