method

create_or_update

rails latest stable - Class: ActiveRecord::Persistence
create_or_update(**, &block)
private

No documentation available.

# File activerecord/lib/active_record/persistence.rb, line 1218
    def create_or_update(**, &block)
      _raise_readonly_record_error if readonly?
      return false if destroyed?
      result = new_record? ? _create_record(&block) : _update_record(&block)
      result != false
    end