Module: AASM::Persistence::OhmPersistence::ClassMethods
- Defined in:
- lib/aasm/persistence/ohm_persistence.rb
Instance Method Summary collapse
Instance Method Details
#count_in_state(state, *args) ⇒ Object
42 43 44 |
# File 'lib/aasm/persistence/ohm_persistence.rb', line 42 def count_in_state(state, *args) find(aasm_column.to_sym => state).count end |
#find_in_state(id, state, *args) ⇒ Object
38 39 40 |
# File 'lib/aasm/persistence/ohm_persistence.rb', line 38 def find_in_state(id, state, *args) find(aasm_column.to_sym => state)[id] end |