aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_relation/relations/compound.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_relation/relations/compound.rb')
-rw-r--r--lib/active_relation/relations/compound.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/relations/compound.rb b/lib/active_relation/relations/compound.rb
index befb7f26d2..d11d09fbf6 100644
--- a/lib/active_relation/relations/compound.rb
+++ b/lib/active_relation/relations/compound.rb
@@ -6,7 +6,7 @@ module ActiveRelation
:to => :relation
def attributes
- relation.attributes.collect { |a| a.substitute(self) }
+ relation.attributes.collect { |a| a.bind(self) }
end
end
end \ No newline at end of file