has_friendship 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/lib/has_friendship/friendable.rb +1 -1
- data/lib/has_friendship/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5748ee44d7db6b70f9f1066be963b6b580aebc02
|
4
|
+
data.tar.gz: 3c61eb3e760db7546fae7cebb8672dc1f2c2357c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6e9033ebbf31b6f827790e2b645a1a96aeb46bcdf29f6e7002aebf27dd902c37a3520792158139653840a02506e81229237426645b4f9c8efd8d5e4b8a72511
|
7
|
+
data.tar.gz: c3e82476466b52cad99dd727e83ac57929e0b37ae174c301043dcc48697d985aee76fb09804197ecce77451f5ad6230c37a24f04a038bfd20f1603a7cdeac22d
|
data/MIT-LICENSE
CHANGED
@@ -70,7 +70,7 @@ module HasFriendship
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def friends_with?(friend)
|
73
|
-
HasFriendship::Friendship.where(friend_id: friend.id, status: 'accepted').present?
|
73
|
+
HasFriendship::Friendship.where(friendable_id: self.id, friend_id: friend.id, status: 'accepted').present?
|
74
74
|
end
|
75
75
|
|
76
76
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_friendship
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sung Won Cho
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|