Answers for "using update callback without changing some attributes rails"

1

rails update without callback

# no validations
user.update_attribute(:last_request_at, Time.current)
# no validations AND callback
user.update_columns(last_request_at: Time.current)
Posted by: Guest on May-06-2020

Code answers related to "using update callback without changing some attributes rails"

Browse Popular Code Answers by Language