Store group_id of message also in the database
This commit is contained in:
parent
72ef31c0ec
commit
673448a5ac
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ class Message < ActiveRecord::Base
|
||||||
def group_id=(group_id)
|
def group_id=(group_id)
|
||||||
@group_id = group_id
|
@group_id = group_id
|
||||||
add_recipients Group.find(group_id).users unless group_id.blank?
|
add_recipients Group.find(group_id).users unless group_id.blank?
|
||||||
|
super
|
||||||
end
|
end
|
||||||
|
|
||||||
def order_id=(order_id)
|
def order_id=(order_id)
|
||||||
|
|
Loading…
Reference in a new issue