double negative is not good

This commit is contained in:
Neeraj Singh
2010-09-30 02:30:33 +08:00
committed by Aaron Patterson
parent 618407db56
commit 396f3a28f1

View File

@@ -45,7 +45,7 @@ module ActiveRecord #:nodoc:
send(association)
end
unless records.nil?
if records
association_options = include_has_options ? include_associations[association] : base_only_or_except
opts = options.merge(association_options)
yield(association, records, opts)