Module: EventSourcery::Postgres::Projector

Defined in:
lib/event_sourcery/postgres/projector.rb

Defined Under Namespace

Modules: InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/event_sourcery/postgres/projector.rb', line 4

def self.included(base)
  base.include(EventProcessing::EventStreamProcessor)
  base.prepend(TableOwner)
  base.include(InstanceMethods)
  base.class_eval do
    alias_method :project, :process

    class << self
      alias_method :project, :process
      alias_method :projector_name, :processor_name
    end
  end
end