logga 0.5.0 → 0.5.1
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: 9fb2a4b524e451078a598964387d5f1c897634d7
|
4
|
+
data.tar.gz: 40e1486b7930ad273822cfeba98ccf3191f99fdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b512ebf4e02724c89fc197a5165cb64e742f78b93f86c30335130e51466483357c5d4c630dbf46b3a6a16d41d1c6ca48f9d9262bc093d39b84a1ee4db1a74575
|
7
|
+
data.tar.gz: 4201c2593235034b412869d43df14cd3a444e1c608a577fa60775cf817c9846b4575efef3c2cf2f40b7a8c01b856f98d13f7d6d658537ad688126758fd13f759
|
data/lib/logga/active_record.rb
CHANGED
@@ -13,7 +13,7 @@ module Logga
|
|
13
13
|
end
|
14
14
|
|
15
15
|
class_methods do
|
16
|
-
def add_log_entries_for(*actions, to: :self, fields: {}, exclude_fields: []
|
16
|
+
def add_log_entries_for(*actions, to: :self, fields: {}, exclude_fields: [])
|
17
17
|
after_create :log_model_creation if actions.include?(:create)
|
18
18
|
after_destroy :log_model_deletion if actions.include?(:delete)
|
19
19
|
after_update :log_model_changes if actions.include?(:update)
|
data/lib/logga/version.rb
CHANGED