Module: AASM::Persistence::CoreDataQueryPersistence

Defined in:
lib/aasm/persistence/core_data_query_persistence.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

This method:

  • extends the model with ClassMethods

  • includes InstanceMethods

Adds

after_initialize :aasm_ensure_initial_state


14
15
16
17
18
19
20
# File 'lib/aasm/persistence/core_data_query_persistence.rb', line 14

def self.included(base)
  base.send(:include, AASM::Persistence::Base)
  base.send(:include, AASM::Persistence::CoreDataQueryPersistence::InstanceMethods)
  base.extend AASM::Persistence::CoreDataQueryPersistence::ClassMethods

  base.after_initialize :aasm_ensure_initial_state
end