has_friendship 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30912406c5bb74e24220261df7b201a733cf17c8
4
- data.tar.gz: e03fffdc28479f2e4a854d2fe325f960945b7538
3
+ metadata.gz: 705e193cc6e95b8661e5897d2e2cda94fe5fe26b
4
+ data.tar.gz: 3833bf8514f56070397c975101ac50a57fe21615
5
5
  SHA512:
6
- metadata.gz: cf4dae8e5fafc0a1fafdca3dd4ea37bfc13b0675426f33ce1e749356681c8ead432c72e6fcc32ba7feacd796e6e205e1f9591e8b95919457a7634ae920266a14
7
- data.tar.gz: e34d36ee0924adbd0e9d97bee1a40e18209126935a12b1ddd03336139bbb31ad3fb9660ce0ef8b2195790c3c18dd6ba8a9f1a066e21088912f193582afba0e18
6
+ metadata.gz: d548a1dc0cf9619ce0cc9deb827894d94d27a9b4b1df78a4db1f3e9fc559061c52960942b69948086d8324fb596514345507338ab29382851374b1b4fe3a0a24
7
+ data.tar.gz: 9afea893eb09c57e734324e3ed7b845ca26bf4658ab6b1d563344a67b3d842033f32d80671a93ba2a7ae0e002f42b10f0cca1de07b53a2fc4b16d7139fae2a31
@@ -12,7 +12,8 @@ module HasFriendship
12
12
 
13
13
  has_many :blocked_friends,
14
14
  -> { where friendships: { status: 'blocked' } },
15
- through: :friendships
15
+ through: :friendships,
16
+ source: :friend
16
17
 
17
18
  has_many :friends,
18
19
  -> { where friendships: { status: 'accepted' } },
@@ -1,3 +1,3 @@
1
1
  module HasFriendship
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  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.1.2
4
+ version: 0.1.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: 2016-03-05 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails