aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2016-09-06 23:15:33 +0530
committerGitHub <noreply@github.com>2016-09-06 23:15:33 +0530
commit61c96d66b2c60114b19a3d8fe021699a222157ea (patch)
tree7b18ce9e87b4f1c07e91553390cbb32c2c00a49a /activerecord
parent0fdf522611cb162c2eb8ea23a258451c43cd1fde (diff)
parentcde162bad1d7b2d5d4eec332b1e7dfbe90f9de84 (diff)
downloadrails-61c96d66b2c60114b19a3d8fe021699a222157ea.tar.gz
rails-61c96d66b2c60114b19a3d8fe021699a222157ea.tar.bz2
rails-61c96d66b2c60114b19a3d8fe021699a222157ea.zip
Merge pull request #26410 from aditya-kapoor/rm-dups
[ci skip] Remove duplicate example.
Diffstat (limited to 'activerecord')
-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