effective_logging 1.10.0 → 1.10.1
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 +7 -2
- data/lib/effective_logging/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: 7a0761fe17b1a89eae022643b9a8fd78eb8c97ec
|
4
|
+
data.tar.gz: f7fd1e4ab6e62489250fd391e3e391ea055741f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e22222aa91554582ceb840aef218db9ad9cb4df111f1b7a2dfc5092446f4a6d8833bbe235e964618b7c6afa6ab28f434eecc8186d57a234c503fb4fcb66b6444
|
7
|
+
data.tar.gz: 64d75979741116fd9a36f89eb4f3211738684a2a4c37d8ef6d4cbde89db3dec875beaa367cd0e606b50cd94a9d94e2886d9c321d56902c1aa8ca9b27787e3dbf
|
data/app/models/effective/log.rb
CHANGED
@@ -13,8 +13,13 @@ module Effective
|
|
13
13
|
|
14
14
|
# The user this log item is referring to
|
15
15
|
# An associated object, if we wanna add anything extra
|
16
|
-
|
17
|
-
|
16
|
+
if Gem::Version.new(Rails.version) < Gem::Version.new('5.0')
|
17
|
+
belongs_to :user
|
18
|
+
belongs_to :associated, polymorphic: true
|
19
|
+
else
|
20
|
+
belongs_to :user, optional: true
|
21
|
+
belongs_to :associated, polymorphic: true, optional: true
|
22
|
+
end
|
18
23
|
|
19
24
|
serialize :details, Hash
|
20
25
|
|
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: 1.10.
|
4
|
+
version: 1.10.1
|
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: 2017-01-
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|