Method: StandardModel#update_and_log!

Defined in:
lib/app/models/concerns/standard_model.rb

#update_and_log!(user, attributes) ⇒ Object Also known as: update_attributes_and_log!

Record an update



259
260
261
262
263
264
265
266
267
# File 'lib/app/models/concerns/standard_model.rb', line 259

def update_and_log!(user, attributes)
  return self if attributes.blank?

  action = audit_action
  self.last_modified_by = user
  result = update!(attributes)
  log_change(user, attributes, action)
  result
end