Commit 3ce012bb by Rocky Duan

bug fix

parent b46f23fc
......@@ -36,7 +36,7 @@ class AtUserObserver < Mongoid::Observer
notification.target = content
receivers = new_user_ids.map { |id| User.find(id) }
receivers.delete(content.author)
notification.receiverss << receivers
notification.receivers << receivers
notification.save!
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment