aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/associations/association_collection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record/associations/association_collection.rb')
-rw-r--r--activerecord/lib/active_record/associations/association_collection.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb
index d400a5c772..359e27de3b 100644
--- a/activerecord/lib/active_record/associations/association_collection.rb
+++ b/activerecord/lib/active_record/associations/association_collection.rb
@@ -161,9 +161,9 @@ module ActiveRecord
if @target.respond_to?(method) || (!@reflection.klass.respond_to?(method) && Class.respond_to?(method))
super { |*block_args| yield(*block_args) if block_given? }
else
- @reflection.klass.send(:with_scope, construct_scope) {
- @reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }
- }
+ @reflection.klass.send(:with_scope, construct_scope) do
+ @reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }
+ end
end
end