Using update_columns in Rails 3?
Is there a shorter way for this in Rails 3?
user.update_column(:attribute1, value1)
user.update_column(:attribute2, value2)
user.update_column(:attribute3, value3)
user.update_column(:attribute4, value4)
I tried update_columns but it is available only in Rails 4.
Thanks for any help.
No comments:
Post a Comment