mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
double negative is not good
This commit is contained in:
committed by
Aaron Patterson
parent
618407db56
commit
396f3a28f1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user