diff --git a/lib/classes/subscription.rb b/lib/classes/subscription.rb index 9860e5a08..7994bfe48 100644 --- a/lib/classes/subscription.rb +++ b/lib/classes/subscription.rb @@ -1,3 +1,4 @@ +require "commontator" module Commontator class Subscription < ActiveRecord::Base belongs_to :subscriber, :polymorphic => true diff --git a/lib/classes/thread.rb b/lib/classes/thread.rb index a3eb38fdb..93f0f657a 100644 --- a/lib/classes/thread.rb +++ b/lib/classes/thread.rb @@ -1,3 +1,4 @@ +require "commontator" class Commontator::Thread < ActiveRecord::Base belongs_to :closer, polymorphic: true, optional: true belongs_to :commontable, polymorphic: true, optional: true, inverse_of: :commontator_thread