method
create_or_update
v5.0.0.1 -
Show latest stable
- Class:
ActiveRecord::Persistence
create_or_update(*args)private
No documentation available.
# File activerecord/lib/active_record/persistence.rb, line 532
def create_or_update(*args)
raise ReadOnlyRecord, "#{self.class} is marked as readonly" if readonly?
result = new_record? ? _create_record : _update_record(*args)
result != false
end