app/models/concerns/order_state_config.rb
# Returns integer representing the number of Items associated with this Order
#   which are ready for use
Returns integer representing the number of Items associated with this Order
which are ready for use
Returns integer representing the number of Items associated with this Order which are ready for use
def num_items_ready
      ready = 0
      items.each do |i|
        if i.current_state == :ready_at_temporary_location
          ready += 1
        end
      end
      ready
    end
def num_items_ready ready = 0 items . each do | i | if i . current_state == :ready_at_temporary_location ready += 1 end end ready end
Returns integer representing the number of Items associated with this Order
which are ready for use
Returns integer representing the number of Items associated with this Order which are ready for use