logga 0.4.4 → 0.4.5
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 +1 -1
- data/lib/logga/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab62ff1370669bb1cadac392052a00a660d28d48
|
4
|
+
data.tar.gz: d2ed8a64441ee89f7b819fe5fc50b8d7be7e5111
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 598d54c4ed728881abbfc32f8610a5cb0677ad20ffe76e7f56883389fa0c1fb50b62452a9013d4cedad2f6b4725df4776790216f9539bf1c807b609a7680bdde
|
7
|
+
data.tar.gz: 41450b01c953e90b29ba79cdecb87f3ad4060f4ba96e7481bc621034bdb0092617617f8ef1c9805b8f880f716fd473b16114bddb7bd2492ebe2e3bf5cb4e0537
|
data/lib/logga/active_record.rb
CHANGED
@@ -45,7 +45,7 @@ module Logga
|
|
45
45
|
body_generator = ->(record, field, old_value, new_value) { default_change_log_body(record, field, old_value, new_value) }
|
46
46
|
body = changes.inject([]) do |result, (field, (old_value, new_value))|
|
47
47
|
result << log_fields.fetch(field.to_sym, body_generator).call(self, field, old_value, new_value)
|
48
|
-
end.join('\n')
|
48
|
+
end.compact.join('\n')
|
49
49
|
log_receiver&.log_entries&.create(author_data.merge(body: body))
|
50
50
|
end
|
51
51
|
end
|
data/lib/logga/version.rb
CHANGED