It makes sense to me, you get passed a hash with the attributes to update,
which could be none.

This is a no-op edge-case similar to append an empty list to a list, etc.,
and could have use cases where the hash is built programatically.

The implementation generally uses iterators, which is the normal way to
support these edge-cases with no explicit handling, maybe the exception is
raised by update_all(attributes)


https://github.com/rails/rails/blob/master/activerecord/lib/active_record/persistence.rb#L312

?

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/d/optout.

Reply via email to