Class: Smith::PersistenceAdapters::ActiveRecordExactWrite
- Inherits:
-
Object
- Object
- Smith::PersistenceAdapters::ActiveRecordExactWrite
- Extended by:
- Dry::Initializer
- Defined in:
- lib/smith/persistence_adapters/active_record_exact_write.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
20 21 22 23 24 25 |
# File 'lib/smith/persistence_adapters/active_record_exact_write.rb', line 20 def call updated = exact_scope.update_all(update_attributes) return payload if updated == 1 raise PersistencePayloadConflict.new(key:) end |