aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/collection_proxy.rb
diff options
context:
space:
mode:
authorAditya Kapoor <adityakapoor.mait@gmail.com>2016-09-06 23:12:07 +0530
committerAditya Kapoor <adityakapoor.mait@gmail.com>2016-09-06 23:12:07 +0530
commitcde162bad1d7b2d5d4eec332b1e7dfbe90f9de84 (patch)
tree335484f6691399fc3f1cf46e4646867c1dcb1aa4 /activerecord/lib/active_record/associations/collection_proxy.rb
parent8065b4531afea08de716bebea01b50ee21a41ecd (diff)
downloadrails-cde162bad1d7b2d5d4eec332b1e7dfbe90f9de84.tar.gz
rails-cde162bad1d7b2d5d4eec332b1e7dfbe90f9de84.tar.bz2
rails-cde162bad1d7b2d5d4eec332b1e7dfbe90f9de84.zip
[ci skip] Remove duplicate example.
Diffstat (limited to 'activerecord/lib/active_record/associations/collection_proxy.rb')
-rw-r--r--activerecord/lib/active_record/associations/collection_proxy.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb
index dda240585e..1302f3c7e4 100644
--- a/activerecord/lib/active_record/associations/collection_proxy.rb
+++ b/activerecord/lib/active_record/associations/collection_proxy.rb
@@ -107,11 +107,6 @@ module ActiveRecord
# # #<Pet id: 3, name: "Choo-Choo", person_id: 1>
# # ]
#
- # person.pets.select(:name) { |pet| pet.name =~ /oo/ }
- # # => [
- # # #<Pet id: 2, name: "Spook">,
- # # #<Pet id: 3, name: "Choo-Choo">
- # # ]
# Finds an object in the collection responding to the +id+. Uses the same
# rules as ActiveRecord::Base.find. Returns ActiveRecord::RecordNotFound