mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-17 19:12:37 -05:00
65cd00cf25
allow pms to be targetted at groups
7 lines
182 B
Ruby
7 lines
182 B
Ruby
class TopicAllowedGroup < ActiveRecord::Base
|
|
belongs_to :topic
|
|
belongs_to :group
|
|
attr_accessible :group_id, :user_id
|
|
|
|
validates_uniqueness_of :topic_id, scope: :group_id
|
|
end
|