is_contacted 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/is_contacted.rb +1 -1
- metadata +2 -2
data/lib/is_contacted.rb
CHANGED
@@ -38,7 +38,7 @@ module IsContacted
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
if contact_id.blank? && self.respond_to?(:user_id)
|
41
|
-
user = User.
|
41
|
+
user = User.find_by_id(self.user_id)
|
42
42
|
contact = Contact.find_by_value(user.login) if user
|
43
43
|
self.contact_id = contact.id if contact
|
44
44
|
end
|