Sha256: e55a795ff1b32da4a619d99a851daf83b260c256b44b67d9380a4dcbebbb6540

Contents?: true

Size: 224 Bytes

Versions: 1

Compression:

Stored size: 224 Bytes

Contents

module RequestHelpers
  def app
    @@app ||= <%= project_class_name %>::Server
  end

  def last_event(aggregate_id)
    <%= project_class_name %>.event_store
      .get_events_for_aggregate_id(aggregate_id).last
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
event_sourcery_generators-0.2.0 lib/event_sourcery_generators/generators/templates/project/request_helpers.rb.tt