acts_in_relation 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe38daa27d165526d7e9e12500dc6c912a09ecd
4
- data.tar.gz: 962ba4832d57d659960ca05cb80035f293c0262e
3
+ metadata.gz: a63a6dc959197b40efcc193c4056fd235a607ff8
4
+ data.tar.gz: 757f36531ebf452fc92f8ca688bf3f8e9c61303b
5
5
  SHA512:
6
- metadata.gz: 24b69788f633b82dfd277d4ffe6eee078e2edc42018f6f40698328a2a38d5627c19b429485cfd64d026e10de670787a49263dfd23dc6f80b40ffb6c63bdeec0c
7
- data.tar.gz: 26a752c79a045ba6595c36d6387134df630e89dab1a66f24e0ab9b331118b2a6e19cb1be7071e877c5d1ac2d1df256b5918305e2bda50725ddffb8faf4e2c4f0
6
+ metadata.gz: 93dcaf15599830c2d428bb4c2e3d068c430d4da3f9f947c02e5437fb002f5f591ac04927facc9cba7bae5b7d96a2d96964543e4595616af061869df82068f1fc
7
+ data.tar.gz: d1b25af59e3399bb35043fde5c0f7a1accab1e362b99473f914730a78e3ccde5fc8acb85bb3643664ed94d2878be68e310130b3573ef87897e0bd35bbfa638f7
@@ -14,7 +14,7 @@ module ActsInRelation
14
14
  source: :"#{source}"
15
15
 
16
16
  def #{pastize(action)}_by?(source)
17
- source.#{action.pluralize}.exists?(#{source}_id: source.id)
17
+ source.#{action.pluralize}.exists?(target_#{target}_id: id)
18
18
  end
19
19
  RUBY
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module ActsInRelation
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acts_in_relation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kami
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -136,3 +136,4 @@ signing_key:
136
136
  specification_version: 4
137
137
  summary: Add relational feature to Rails (e.g. follow, block and like).
138
138
  test_files: []
139
+ has_rdoc: