app/models/concerns/order_state_config.rb
# Returns true if all items associated with this Order are ready for use
Returns true if all items associated with this Order are ready for use
Returns true if all items associated with this Order are ready for use
def all_items_ready?
      ready = false
      items.each do |i|
        if !i.obsolete
          ready = item_ready?(i)
        end
        break if !ready
      end
      ready
    end
def all_items_ready? ready = false items . each do | i | if ! i . obsolete ready = item_ready? ( i ) end break if ! ready end ready end
Returns true if all items associated with this Order are ready for use
Returns true if all items associated with this Order are ready for use