Method: ActiveProjection::ProjectionRepository.set_last_id
- Defined in:
- app/models/active_projection/projection_repository.rb
.set_last_id(id, last_id) ⇒ Object
12 13 14 15 |
# File 'app/models/active_projection/projection_repository.rb', line 12 def self.set_last_id(id, last_id) Projection.find(id).update! last_id: last_id @@last_id[id] += 1 end |