Module: Discuss::Models::Discussable

Defined in:
lib/discuss/models/discussable.rb

Defined Under Namespace

Modules: InstanceMethods

Instance Method Summary collapse

Instance Method Details

#acts_as_discussableObject

Converts the model into discussable allowing it to interchange messages


5
6
7
8
# File 'lib/discuss/models/discussable.rb', line 5

def acts_as_discussable
  has_many :messages, class_name: 'Discuss::Message', foreign_key: 'user_id'
  include InstanceMethods
end