marks 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/marks/markable.rb +1 -1
- data/lib/marks/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: 191dcb2f93196a93af72629d56de12bc627ca19d
|
4
|
+
data.tar.gz: 723d71ab2b85e8e6bc2470e50a2374aa1e3c186a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a8c646a2d472be645eebafb69991becaf46ffe6c22118e8e1f2e7b5be10cda03e2f2b07e1159f8600631a94a5a383af17dfda7a49e3138bc0d80461b266069d
|
7
|
+
data.tar.gz: 86b9fbb0198b370a3c3e6911a7be2f4a52a2bd34567859789135e59545e427d7a2f0a9ee0ba5153f811628fd8c9ab12afe41d60aafc69cc6f9d2842d382b8230
|
data/lib/marks/markable.rb
CHANGED
@@ -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).
|
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
|
data/lib/marks/version.rb
CHANGED
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.
|
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
|
+
date: 2014-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|