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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3d8d2b78dd717f7f730d3421f544bd3ee2364e27
4
- data.tar.gz: 09ffc7e7cfd1ef5107a0dc42c36fc9c39ac99c6c
2
+ SHA256:
3
+ metadata.gz: e2eb3570785a65d3e80567534270dae5825eceb07fdeec498764c2065f129892
4
+ data.tar.gz: c9bacbe67acb169365404c423640fd4f25d9536315228d014bea8c6e7e100987
5
5
  SHA512:
6
- metadata.gz: cc2801ab538a63cfc9840465eb850b1e894f9692d4a8606fb0f7001c1d557b79208469d90535d98439393dd6c6f3922917a19dedf5d3ce5c00ce387c96373f5b
7
- data.tar.gz: 420399273b939da92a3f93375a4ccf7eb57b2a0829928f57903d0d92dd6961a3f0ae70fa873dc99bc5ca463c8e5b0a8704ee098041336d0c7317f73b7cfa9173
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.1.1
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: 2014-01-30 00:00:00.000000000 Z
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
- rubyforge_project:
61
- rubygems_version: 2.2.1
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