mumuki/mumuki-domain

View on GitHub
app/models/concerns/with_discussion_creation.rb

Summary

Maintainability
A
0 mins
Test Coverage
module WithDiscussionCreation
  extend ActiveSupport::Concern

  included do
    has_many :discussions, foreign_key: 'initiator_id'
    include WithDiscussionCreation::Subscription
    include WithDiscussionCreation::Upvote
    organic_on :discussions
  end
end