Permalink
Browse files

Fix tie's activity creation

  • Loading branch information...
1 parent 5a56ae1 commit 5345a2e5b5a5137c3195c0b4ee07630b5e0a474e @atd atd committed Jul 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/tie.rb
View
@@ -88,7 +88,7 @@ def receiver_subject
#
# Create contact activity if this is the first tie
def create_activity
- return unless contact.ties_count == 1
+ return if contact.reload.ties_count != 1
Activity.create! :contact => contact,
:relation_ids => contact.relation_ids,

0 comments on commit 5345a2e

Please sign in to comment.