Permalink
Browse files

key hook using wrong user_id

  • Loading branch information...
1 parent 5ae2b3c commit 7b87a2232e7fe0fee2f87750b46d5538ab72f752 Mateus Caruccio committed Jan 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/observers/key_observer.rb
@@ -9,7 +9,7 @@ def after_save(key)
id: key.id,
title: key.title,
key: key.key,
- user_id: key.user.user_id,
+ user_id: key.user_id,
owner_email: key.user.email,
owner_name: key.user.name,
projects: key.projects,
@@ -30,7 +30,7 @@ def after_destroy(key)
id: key.id,
title: key.title,
key: key.key,
- user_id: key.user.user_id,
+ user_id: key.user_id,
owner_email: key.user.email,
owner_name: key.user.name,
projects: key.projects,

0 comments on commit 7b87a22

Please sign in to comment.