diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-08-13 11:50:38 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-08-13 11:50:38 +0200 |
commit | cbb94a39835b3eba14d95d3adcf604d97af6ee0d (patch) | |
tree | 622c4bb84c8d63d9ce448aefbfec9b099cf7b8d2 | |
parent | ecfce561e415d99df48eebefc1b444dd53580d1a (diff) | |
parent | 8f4e24c1ba247087ae33871e48eae635c272d19d (diff) | |
download | rails-cbb94a39835b3eba14d95d3adcf604d97af6ee0d.tar.gz rails-cbb94a39835b3eba14d95d3adcf604d97af6ee0d.tar.bz2 rails-cbb94a39835b3eba14d95d3adcf604d97af6ee0d.zip |
Merge pull request #16489 from tomkadwill/updating_options_to_new_style
[ci skip] Updated where scope documentation to conform to new style
-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 |