effective_logging 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/log.rb +2 -2
- data/lib/effective_logging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2f1d3b5334960d4d20ce576be03fccb16f57a0420e459748a0a371eccfd96bc
|
4
|
+
data.tar.gz: a295c1afe493077e80cee235dec6d53135a1880dd1e9583ee08f7582fefe6caa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a458cb0b5536e73ffd77cb820a5864490475364629626e546ac335a57fcf338b5d238671145786f02c28758ed1f731bd38fd7845cf708a6de0cb1a0b3e9b234e
|
7
|
+
data.tar.gz: 946d224526dc50a35e6f0b344c706c296283febfed782080d4b86d787efb689c51478e2f7f9044c2545f8a51b28c225fba127e788bd8bc05e13b0ffdb313cf9c
|
data/app/models/effective/log.rb
CHANGED
@@ -8,12 +8,12 @@ module Effective
|
|
8
8
|
attr_accessor :prev_log
|
9
9
|
|
10
10
|
# Self-Referencing relationship
|
11
|
-
belongs_to :parent, class_name: 'Effective::Log', counter_cache: true
|
11
|
+
belongs_to :parent, class_name: 'Effective::Log', counter_cache: true, optional: true
|
12
12
|
has_many :logs, class_name: 'Effective::Log', foreign_key: :parent_id
|
13
13
|
|
14
14
|
belongs_to :user
|
15
15
|
|
16
|
-
belongs_to :changes_to, polymorphic: true # This is the log_changes to: option
|
16
|
+
belongs_to :changes_to, polymorphic: true, optional: true # This is the log_changes to: option
|
17
17
|
belongs_to :associated, polymorphic: true
|
18
18
|
|
19
19
|
serialize :details, Hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|