module ActiveRecord::Persistence

def save(**options, &block)

being updated.
Attributes marked as readonly are silently ignored if the record is

details.
#save returns +false+. See ActiveRecord::Callbacks for further
before_* callbacks throws +:abort+ the action is cancelled and
There's a series of callbacks associated with #save. If any of the

timestamps will not be updated.
the current time. However, if you supply touch: false, these
By default, #save also sets the +updated_at+/+updated_on+ attributes to

ActiveRecord::Validations for more information.
validate: false, validations are bypassed altogether. See
is cancelled and #save returns +false+, and the record won't be saved. However, if you supply
By default, save always runs validations. If any of them fail the action

the existing record gets updated.
If the model is new, a record gets created in the database, otherwise

Saves the model.

save(**options)
:call-seq:
#
def save(**options, &block)
  create_or_update(**options, &block)
rescue ActiveRecord::RecordInvalid
  false
end