Sha256: 82b89d0250bb462ed8c8546306437c89c93ac57eeccc3e24a41aeb5e5fd44f25

Contents?: true

Size: 274 Bytes

Versions: 7

Compression:

Stored size: 274 Bytes

Contents

# frozen_string_literal: true

module SolidusSubscriptions
  class SubscriptionEvent < ApplicationRecord
    belongs_to :subscription, class_name: 'SolidusSubscriptions::Subscription', inverse_of: :events

    after_initialize do
      self.details ||= {}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 app/models/solidus_subscriptions/subscription_event.rb
solidus_subscriptions-2.0.1 app/models/solidus_subscriptions/subscription_event.rb
solidus_subscriptions-2.0.0 app/models/solidus_subscriptions/subscription_event.rb
solidus_subscriptions-1.1.0 app/models/solidus_subscriptions/subscription_event.rb
solidus_subscriptions-1.0.1 app/models/solidus_subscriptions/subscription_event.rb
solidus_subscriptions-1.0.0 app/models/solidus_subscriptions/subscription_event.rb
solidus_subscriptions-1.0.0.rc1 app/models/solidus_subscriptions/subscription_event.rb