Yes. It is raised by `update_all(attributes)`.

On Thu, May 7, 2015 at 3:19 PM Xavier Noria <f...@hashref.com> wrote:

> 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 rubyonrails-core+unsubscr...@googlegroups.com.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> Visit this group at http://groups.google.com/group/rubyonrails-core.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 rubyonrails-core+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-core@googlegroups.com.
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