diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-09-30 02:30:33 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-30 08:11:36 +0800 |
commit | 396f3a28f175dcdae6fdcd5139b9dd5defde18de (patch) | |
tree | 17d81c79b7560265a7aee582dd21809b6b2223ca /activerecord | |
parent | 618407db56b39a4130e05779339534ae2ebf883e (diff) | |
download | rails-396f3a28f175dcdae6fdcd5139b9dd5defde18de.tar.gz rails-396f3a28f175dcdae6fdcd5139b9dd5defde18de.tar.bz2 rails-396f3a28f175dcdae6fdcd5139b9dd5defde18de.zip |
double negative is not good
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/serialization.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/serialization.rb b/activerecord/lib/active_record/serialization.rb index ad3f7afd6f..398eb1534a 100644 --- a/activerecord/lib/active_record/serialization.rb +++ b/activerecord/lib/active_record/serialization.rb @@ -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) |