Sha256: 86e61b3b1151bf1a27fea23b72360e5da9de1c53516bcc02deebe805a67ecbff

Contents?: true

Size: 216 Bytes

Versions: 2

Compression:

Stored size: 216 Bytes

Contents

module Comable
  class DraftOrder
    class << self
      delegate :find, to: Comable::Order.name

      def new(attributes = {})
        Comable::Order.where(draft: true).new(attributes)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comable-core-0.7.1 app/models/comable/draft_order.rb
comable-core-0.7.0 app/models/comable/draft_order.rb