rails/rails — Issue #5186: update_attributes + where
Author: anga
Created: 2012-02-27 02:51:49+00:00
State: open

I like to do something like this `User.update_attributes(subscribed: true).where(active: true)`

This will execute something like `UPDATE "users" SET "subscribed" = 1 WHERE active = 1`.