Module: AASM::Persistence::CoreDataQueryPersistence::ClassMethods
- Defined in:
- lib/aasm/persistence/core_data_query_persistence.rb
Instance Method Summary collapse
Instance Method Details
#aasm_create_scope(state_machine_name, scope_name) ⇒ Object
23 24 25 |
# File 'lib/aasm/persistence/core_data_query_persistence.rb', line 23 def aasm_create_scope(state_machine_name, scope_name) scope(scope_name.to_sym, lambda { where(aasm(state_machine_name).attribute_name.to_sym).eq(scope_name.to_s) }) end |