aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/relations/rename.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-12 16:43:48 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-12 16:43:48 -0700
commit1b8f72746b38ce1e08b5fab48f3251eb09f2cba0 (patch)
tree3782ef3e88474bb6d79ba3e25b08b235fca78040 /lib/active_relation/relations/rename.rb
parent6de1f350ce117129e46353f12f90a138ca3d3ead (diff)
downloadrails-1b8f72746b38ce1e08b5fab48f3251eb09f2cba0.tar.gz
rails-1b8f72746b38ce1e08b5fab48f3251eb09f2cba0.tar.bz2
rails-1b8f72746b38ce1e08b5fab48f3251eb09f2cba0.zip
- removed #qualify and #descend helper
- qualify seems no longer neccessary since everything is fully qualified - finished pending specs
Diffstat (limited to 'lib/active_relation/relations/rename.rb')
-rw-r--r--lib/active_relation/relations/rename.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/active_relation/relations/rename.rb b/lib/active_relation/relations/rename.rb
index ac5484bfff..9ab07707a0 100644
--- a/lib/active_relation/relations/rename.rb
+++ b/lib/active_relation/relations/rename.rb
@@ -18,10 +18,6 @@ module ActiveRelation
relation.attributes.collect(&method(:christen))
end
- def descend(&block)
- Rename.new(relation.descend(&block), yield(attribute) => pseudonym)
- end
-
private
def christen(attribute)
(attribute =~ self.attribute ? attribute.as(pseudonym) : attribute).bind(self) rescue nil