Module: ActiveRecordUpsert::ActiveRecord6::Relation
- Defined in:
- lib/active_record_upsert/active_record6/relation.rb
Instance Method Summary collapse
Instance Method Details
#upsert(on_duplicate = nil) ⇒ Object
4 5 6 |
# File 'lib/active_record_upsert/active_record6/relation.rb', line 4 def upsert(on_duplicate = nil) scoping { klass._upsert_record(values_for_create, on_duplicate) } end |