aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/relations/alias.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-02-16 19:42:19 -0800
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-02-16 19:42:19 -0800
commit49c2620bc63d4611db979b0a2151b3e080bb1acf (patch)
tree6eddbf64e6dc4c56e46f2ba81db3d04586f0934f /lib/active_relation/relations/alias.rb
parenta2339b41746b92231dfbb15ab19d0f7e1aa2e69a (diff)
downloadrails-49c2620bc63d4611db979b0a2151b3e080bb1acf.tar.gz
rails-49c2620bc63d4611db979b0a2151b3e080bb1acf.tar.bz2
rails-49c2620bc63d4611db979b0a2151b3e080bb1acf.zip
cleanup
Diffstat (limited to 'lib/active_relation/relations/alias.rb')
-rw-r--r--lib/active_relation/relations/alias.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/relations/alias.rb b/lib/active_relation/relations/alias.rb
index 5b45d9dce4..941a95c58e 100644
--- a/lib/active_relation/relations/alias.rb
+++ b/lib/active_relation/relations/alias.rb
@@ -3,7 +3,7 @@ module ActiveRelation
attr_reader :alias
def aliased_prefix_for(attribute)
- @alias
+ self[attribute] and @alias
end
def initialize(relation, aliaz)