Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Minor formatting changes

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8869 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 039f724c7b48f07181a45dab0b8643d0207d69f5 1 parent de048b1
@NZKoz NZKoz authored
View
6 activerecord/lib/active_record/associations/association_collection.rb
@@ -161,9 +161,9 @@ def method_missing(method, *args)
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
View
6 activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -132,9 +132,9 @@ def method_missing(method, *args)
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
Please sign in to comment.
Something went wrong with that request. Please try again.