marks 0.0.11 → 0.0.12

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: 0b15c7e6a7569ff12c6b88ef8b48060946b5af51
4
- data.tar.gz: fcb939ebd6d81dbaaa20aa46e4650875933f1fc0
3
+ metadata.gz: 191dcb2f93196a93af72629d56de12bc627ca19d
4
+ data.tar.gz: 723d71ab2b85e8e6bc2470e50a2374aa1e3c186a
5
5
  SHA512:
6
- metadata.gz: 18f1e61375f3387e713d4f41bb5a7b3f35289a27bf54a48d73f5f0cc230e93f51f81b9894563b0e8e50154ec1424d67dddfd694cbd48afea9fdfcf3fe4801be1
7
- data.tar.gz: df604dee365c1b15c40451626f8314a760a7a55d3851a0dddf7cba7d0d0f567e423f205377c73a1ca277cba95fb13f2a3bda252f872cddf70cc284c001bbb3e5
6
+ metadata.gz: 9a8c646a2d472be645eebafb69991becaf46ffe6c22118e8e1f2e7b5be10cda03e2f2b07e1159f8600631a94a5a383af17dfda7a49e3138bc0d80461b266069d
7
+ data.tar.gz: 86b9fbb0198b370a3c3e6911a7be2f4a52a2bd34567859789135e59545e427d7a2f0a9ee0ba5153f811628fd8c9ab12afe41d60aafc69cc6f9d2842d382b8230
@@ -30,7 +30,7 @@ module Marks
30
30
  end
31
31
 
32
32
  klass = marker.class.table_name.classify.constantize
33
- klass.joins(:outgoing_marks).where('marks_marks.mark_type = ? AND markable_type = ? AND markable_id = ?', mark.to_s.classify, self.class.base_class.to_s, self).any?
33
+ klass.joins(:outgoing_marks).where('marks_marks.mark_type = ? AND markable_type = ? AND markable_id = ?', mark.to_s.classify, self.class.base_class.to_s, self).include?(marker)
34
34
  end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module Marks
2
- VERSION = '0.0.11'
2
+ VERSION = '0.0.12'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Ihara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-11 00:00:00.000000000 Z
11
+ date: 2014-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails