Skip to content
This repository has been archived by the owner on Mar 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #104 from pmq20/master
Browse files Browse the repository at this point in the history
little coding mistake
  • Loading branch information
huacnlee committed Sep 20, 2011
2 parents 68a1f7d + 4b005cb commit 00e114e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/models/log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ class AskLog < Log
def send_notification
case self.action
when "INVITE_TO_ANSWER"
Notification.create(user_id: self.target_parent_id,
Notification.create(user_id: self.target_id,
log_id: self.id,
target_id: self.target_id,
target_id: self.target_parent_id,
action: "INVITE_TO_ANSWER")
when "NEW_TO_USER"
Notification.create(user_id: self.target_parent_id,
Notification.create(user_id: self.target_id,
log_id: self.id,
target_id: self.target_id,
target_id: self.target_parent_id,
action: "ASK_USER")
end
end
Expand Down

0 comments on commit 00e114e

Please sign in to comment.