closes GitHub issue #16
This commit is contained in:
parent
ae5847af6a
commit
c0c279e6d8
|
@ -66,7 +66,7 @@ class User < ActiveRecord::Base
|
||||||
|
|
||||||
# unfollows an user
|
# unfollows an user
|
||||||
def unfollow(target_user)
|
def unfollow(target_user)
|
||||||
active_relationships.find_by(target: target_user).destroy
|
relationship = active_relationships.find_by(target: target_user).destroy
|
||||||
Notification.denotify target_user, relationship
|
Notification.denotify target_user, relationship
|
||||||
|
|
||||||
# decrement counts
|
# decrement counts
|
||||||
|
|
Loading…
Reference in New Issue