Sha256: a749d5648d20f3e5f1cd5219903017692a142c30c9b69f5a7cbcb731ee3e5382
Contents?: true
Size: 595 Bytes
Versions: 4
Compression:
Stored size: 595 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
4 entries across 4 versions & 1 rubygems