aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Kadwill <tomkadwill@gmail.com>2014-08-14 09:05:10 +0100
committerTom Kadwill <tomkadwill@gmail.com>2014-08-14 09:12:11 +0100
commit006225b01517628421964a038bbded3dc7372a30 (patch)
tree9cee1fa18f7cfbaa68bfcd9974a5471e7f2187c1
parent9424b48d39fc2f646f34ffb088568a148313c0e8 (diff)
downloadrails-006225b01517628421964a038bbded3dc7372a30.tar.gz
rails-006225b01517628421964a038bbded3dc7372a30.tar.bz2
rails-006225b01517628421964a038bbded3dc7372a30.zip
[ci skip] updated 'where' in association documention to new style syntax
-rw-r--r--activerecord/lib/active_record/associations.rb2
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..735084424e 100644
--- a/activerecord/lib/active_record/associations.rb
+++ b/activerecord/lib/active_record/associations.rb
@@ -1209,7 +1209,7 @@ module ActiveRecord
# Option examples:
# has_many :comments, -> { order "posted_on" }
# has_many :comments, -> { includes :author }
- # has_many :people, -> { where("deleted = 0").order("name") }, class_name: "Person"
+ # has_many :people, -> { where(deleted: false).order(:name) }, class_name: "Person"
# has_many :tracks, -> { order "position" }, dependent: :destroy
# has_many :comments, dependent: :nullify
# has_many :tags, as: :taggable