From 2091e5a65e2950689ad3242d67fdd7b15aa3411b Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 11 May 2012 23:43:18 +0100 Subject: Remove #=== quirk Makes it consistent with Relation. Can't see a use for this. --- activerecord/lib/active_record/associations/collection_proxy.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'activerecord/lib/active_record/associations') diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index b3e46d3707..cf4cc98f38 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -79,12 +79,6 @@ module ActiveRecord load_target == other end - # Forwards === explicitly to the \target because the instance method - # removal above doesn't catch it. Loads the \target if needed. - def ===(other) - other === load_target - end - def to_ary load_target.dup end -- cgit v1.2.3