Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

double negative is not good

  • Loading branch information...
commit 396f3a28f175dcdae6fdcd5139b9dd5defde18de 1 parent 618407d
@neerajdotname neerajdotname authored tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/serialization.rb
View
2  activerecord/lib/active_record/serialization.rb
@@ -45,7 +45,7 @@ def serializable_add_includes(options = {})
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)
Please sign in to comment.
Something went wrong with that request. Please try again.