Commit b495fba3 by Rocky Duan

fixed param bug

parent 47b58d9a
...@@ -17,6 +17,6 @@ class Notification ...@@ -17,6 +17,6 @@ class Notification
has_and_belongs_to_many :receivers, class_name: "User", inverse_of: :notifications, autosave: true has_and_belongs_to_many :receivers, class_name: "User", inverse_of: :notifications, autosave: true
def to_hash(params={}) def to_hash(params={})
as_document.slice(*%w[notification_type info actor target]).merge("id" => _id) as_document.slice(*%w[notification_type info actor_id target_id]).merge("id" => _id)
end end
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