aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/algebra/relations/relation.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-06 14:57:54 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-06 14:57:54 -0700
commitc7b4f12d9339504b58431de0145d9a965008e650 (patch)
treedc955e635e1fa388ba1ae1a733c69615d32c5a02 /lib/arel/algebra/relations/relation.rb
parent06cc73cc9efbe2cacdbf8c6765ad6dab5a6e1aa0 (diff)
downloadrails-c7b4f12d9339504b58431de0145d9a965008e650.tar.gz
rails-c7b4f12d9339504b58431de0145d9a965008e650.tar.bz2
rails-c7b4f12d9339504b58431de0145d9a965008e650.zip
removing parameter requirement for matching_attributes
Diffstat (limited to 'lib/arel/algebra/relations/relation.rb')
-rw-r--r--lib/arel/algebra/relations/relation.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/arel/algebra/relations/relation.rb b/lib/arel/algebra/relations/relation.rb
index 4c739edb4d..9807cfb984 100644
--- a/lib/arel/algebra/relations/relation.rb
+++ b/lib/arel/algebra/relations/relation.rb
@@ -197,19 +197,5 @@ module Arel
def skipped; nil end
def sources; [] end
def locked; [] end
-
- private
- def matching_attributes(attribute)
- unless @matching_attributes
- @matching_attributes = Hash[attributes.map do |a|
- [a.root, a]
- end]
- end
- [@matching_attributes[attribute.root]] || []
- end
-
- def has_attribute?(attribute)
- !matching_attributes(attribute).empty?
- end
end
end