acts_as_readable 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/acts_as_readable/acts_as_readable.rb +4 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e2eb3570785a65d3e80567534270dae5825eceb07fdeec498764c2065f129892
|
4
|
+
data.tar.gz: c9bacbe67acb169365404c423640fd4f25d9536315228d014bea8c6e7e100987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7ddc495d6010d7748b134c731908c1a2e71b88b4cc86b8f694729e4bc1c83659e10bf0b0547801012124f1f946d871397ef9ac53c1ff9798a5753bddbf40f5d
|
7
|
+
data.tar.gz: 97cdf31a2684e938da9462d8f6d8f20ca0d6bd7170da449ef7e4eafa7c21633f452bcf6227daacb95541c37747e61aa99bcdb942a3c4e0aaa1f2400c06787d34
|
@@ -17,6 +17,10 @@ module ActsAsReadable
|
|
17
17
|
extend ActsAsReadable::ClassMethods
|
18
18
|
include ActsAsReadable::InstanceMethods
|
19
19
|
end
|
20
|
+
|
21
|
+
def acts_as_reader
|
22
|
+
has_many :readings, :dependent => :delete_all
|
23
|
+
end
|
20
24
|
end
|
21
25
|
|
22
26
|
module HelperMethods
|
@@ -129,4 +133,3 @@ module ActsAsReadable
|
|
129
133
|
end
|
130
134
|
end
|
131
135
|
end
|
132
|
-
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: acts_as_readable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Jakobsen
|
8
8
|
- Ryan Wallace
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '4.0'
|
28
|
-
description:
|
28
|
+
description:
|
29
29
|
email: contact@culturecode.ca
|
30
30
|
executables: []
|
31
31
|
extensions: []
|
@@ -42,7 +42,7 @@ files:
|
|
42
42
|
homepage: http://github.com/culturecode/acts_as_readable
|
43
43
|
licenses: []
|
44
44
|
metadata: {}
|
45
|
-
post_install_message:
|
45
|
+
post_install_message:
|
46
46
|
rdoc_options: []
|
47
47
|
require_paths:
|
48
48
|
- lib
|
@@ -57,9 +57,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
- !ruby/object:Gem::Version
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
|
-
|
61
|
-
|
62
|
-
signing_key:
|
60
|
+
rubygems_version: 3.0.8
|
61
|
+
signing_key:
|
63
62
|
specification_version: 4
|
64
63
|
summary: Allows records to be marked as readable. Optimized for bulk, 'mark all as
|
65
64
|
read' operations
|