logga 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logga/active_record.rb +2 -2
- data/lib/logga/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: a2b4685fe6f3a1ebf00cfe984839b901b9400bde
|
4
|
+
data.tar.gz: 62f964bc27049e101262e90d3d4e9a497e0bc733
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d768e0538660f31428f41a69d0aec6bc5fd53b67a4149b7bae0d00d8226313d96b013c29673b7bfc7cc1551afbd0bf60deb30c9cc36f1068434bc99af0e6660a
|
7
|
+
data.tar.gz: aa4901c3829d000e346c4dde4d7be4d4afbeba0c1918094fedecf8cf8952dd93b7e3e6b8a608668d1be5cc72d49bce48307dd49fe50f41dc017845c10f5573c2
|
data/lib/logga/active_record.rb
CHANGED
@@ -44,7 +44,7 @@ module Logga
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def author_data
|
47
|
-
data = Hash(log_receiver.author).with_indifferent_access
|
47
|
+
data = Hash(log_receiver.try(:author) || try(:author)).with_indifferent_access
|
48
48
|
{
|
49
49
|
author_id: data[:id],
|
50
50
|
author_type: data[:type],
|
@@ -60,7 +60,7 @@ module Logga
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def default_change_log_body(record, field, old_value, new_value)
|
63
|
-
"#{record.class.name.demodulize} #{field} set to #{new_value}"
|
63
|
+
"#{record.class.name.demodulize.titleize} #{field} set to #{new_value}"
|
64
64
|
end
|
65
65
|
end
|
66
66
|
end
|
data/lib/logga/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logga
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Chinery, Rob Hesketh, Lorenzo Tello
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|