Changeset 8869
- Timestamp:
- 02/14/08 20:02:19 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/lib/active_record/associations/association_collection.rb
r8865 r8869 162 162 super { |*block_args| yield(*block_args) if block_given? } 163 163 else 164 @reflection.klass.send(:with_scope, construct_scope) {165 @reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }166 }164 @reflection.klass.send(:with_scope, construct_scope) do 165 @reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? } 166 end 167 167 end 168 168 end trunk/activerecord/lib/active_record/associations/has_many_through_association.rb
r8865 r8869 133 133 super { |*block_args| yield(*block_args) if block_given? } 134 134 else 135 @reflection.klass.send(:with_scope, construct_scope) {136 @reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? }137 }135 @reflection.klass.send(:with_scope, construct_scope) do 136 @reflection.klass.send(method, *args) { |*block_args| yield(*block_args) if block_given? } 137 end 138 138 end 139 139 end