diff options
author | Tom Kadwill <tomkadwill@gmail.com> | 2014-08-13 07:36:43 +0100 |
---|---|---|
committer | Tom Kadwill <tomkadwill@gmail.com> | 2014-08-13 07:36:43 +0100 |
commit | 8f4e24c1ba247087ae33871e48eae635c272d19d (patch) | |
tree | ccacacb1d133fb3be9e56edc02c04e8f1bc250b1 /activerecord/lib | |
parent | 9424b48d39fc2f646f34ffb088568a148313c0e8 (diff) | |
download | rails-8f4e24c1ba247087ae33871e48eae635c272d19d.tar.gz rails-8f4e24c1ba247087ae33871e48eae635c272d19d.tar.bz2 rails-8f4e24c1ba247087ae33871e48eae635c272d19d.zip |
[ci skip] Updated where scope to conform to new style
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 1c5a737696..830c633c36 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -1435,7 +1435,7 @@ module ActiveRecord # belongs_to :firm, foreign_key: "client_of" # belongs_to :person, primary_key: "name", foreign_key: "person_name" # belongs_to :author, class_name: "Person", foreign_key: "author_id" - # belongs_to :valid_coupon, ->(o) { where "discounts > #{o.payments_count}" }, + # belongs_to :valid_coupon, ->(o) { where "discounts > ?", o.payments_count }, # class_name: "Coupon", foreign_key: "coupon_id" # belongs_to :attachable, polymorphic: true # belongs_to :project, readonly: true |