Module: Sequent::Core::Migratable

Included in:
Projector
Defined in:
lib/sequent/core/projector.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.allObject



50
51
52
# File 'lib/sequent/core/projector.rb', line 50

def self.all
  Migratable.projectors
end

.included(host_class) ⇒ Object



42
43
44
# File 'lib/sequent/core/projector.rb', line 42

def self.included(host_class)
  host_class.extend(ClassMethods)
end

.noneObject



46
47
48
# File 'lib/sequent/core/projector.rb', line 46

def self.none
  []
end

.projectorsObject



38
39
40
# File 'lib/sequent/core/projector.rb', line 38

def self.projectors
  Sequent.configuration.event_handlers.select { |x| x.is_a? Migratable }.map(&:class)
end

Instance Method Details

#managed_tablesObject



54
55
56
# File 'lib/sequent/core/projector.rb', line 54

def managed_tables
  self.class.managed_tables
end