diff options
Diffstat (limited to 'app/models/solidus_subscriptions/line_item.rb')
-rw-r--r-- | app/models/solidus_subscriptions/line_item.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/solidus_subscriptions/line_item.rb b/app/models/solidus_subscriptions/line_item.rb index 46b0a0e..0acdc02 100644 --- a/app/models/solidus_subscriptions/line_item.rb +++ b/app/models/solidus_subscriptions/line_item.rb @@ -33,6 +33,7 @@ module SolidusSubscriptions inverse_of: :line_items, optional: true ) + belongs_to :subscribable, class_name: "::#{SolidusSubscriptions.configuration.subscribable_class}" validates :subscribable_id, presence: true validates :quantity, numericality: { greater_than: 0 } |