Store group_id of message also in the database

This commit is contained in:
Patrick Gansterer 2016-02-18 11:23:09 +01:00 committed by wvengen
parent 72ef31c0ec
commit 673448a5ac
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class Message < ActiveRecord::Base
def group_id=(group_id)
@group_id = group_id
add_recipients Group.find(group_id).users unless group_id.blank?
super
end
def order_id=(order_id)