Sha256: 62238da7cf660e9795f87de6a1481d636164d6f73f647f28a4e4a798f243688f

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

module Spree
  class SubscriptionEvent < Spree::Base
    serialize :response

    self.whitelisted_ransackable_associations = ['subscription']

    belongs_to :subscription
    validates :event_id, :subscription_id, presence: true
    validates :event_id, uniqueness: true

    attr_readonly :event_id, :subscription_id, :request_type
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
spree_account_recurring-1.2.1 app/models/spree/subscription_event.rb