module AASM::Persistence::OhmPersistence::ClassMethods

Public Instance Methods

count_in_state(state, *args) click to toggle source
# 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) click to toggle source
# File lib/aasm/persistence/ohm_persistence.rb, line 38
def find_in_state(id, state, *args)
  find(aasm_column.to_sym => state)[id]
end