Sha256: 45148d75aa88fd8692f6e7d24c8f4d4142f4806d5e890ffc1978be4885827005
Contents?: true
Size: 618 Bytes
Versions: 1
Compression:
Stored size: 618 Bytes
Contents
# This class represents a single attempt to fulfill an installment. It will # indicate the result of that attept. module SolidusSubscriptions class InstallmentDetail < ActiveRecord::Base belongs_to( :installment, class_name: 'SolidusSubscriptions::Installment', inverse_of: :details ) belongs_to(:order, class_name: 'Spree::Order') validates :installment, presence: true alias_attribute :successful, :success # Was the attempt at fulfilling this installment a failure? # # @return [Boolean] def failed? !success end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-alpha-0.0.4 | app/models/solidus_subscriptions/installment_detail.rb |