activitylog 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/VERSION +1 -1
- data/activitylog.gemspec +1 -1
- data/lib/activity_log/activity_logger.rb +4 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWI1MmMyNWY0YzRjODYwZTRhYjAxZjFkMjIxYTQwMGQxYjY5MzM3NA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzI0ZjM4NDAwM2EzYmM3NjViODc1NGZkNjI0YTY1MmQ3MzAxODllOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTZiMWQ3MWMyODQzNWY3NGI2Njk2YjFiM2NlODY5N2Y5OGU3MDg5ZjRhYzdi
|
10
|
+
ZDcxMDhjMGMxYzI5Y2RhMWQwZjg4N2M4NDNmZmE2MGJlYzlhMDhmNDk1MTdl
|
11
|
+
N2VmZmNkMWRmYWFkNTE4MTgxYWNlMTBjNGE1ZGEwMjY0YWQwOWI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NmE2Yzk5OWFiY2VlODhlNWE1M2EzN2EwZWFjOTY5OTA3MGY5NThkNTM1NDk4
|
14
|
+
YjI0NTU0Y2JmMWRiZWFhY2JlZjlhM2FkYzMyYzc5MWU2YWE4NDJhN2FmN2Rj
|
15
|
+
YmVjODY4NzViYWQ1MzQwOWQyYWEyZDYyNzFhMzUwY2IzMTNlY2M=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.2
|
data/activitylog.gemspec
CHANGED
@@ -5,7 +5,7 @@ module ActivityLogger
|
|
5
5
|
mattr_accessor :stored_parent_activity_id
|
6
6
|
|
7
7
|
# INSTANCE METHODS
|
8
|
-
def
|
8
|
+
def clear_parent_activity_id
|
9
9
|
self.stored_parent_activity_id = nil
|
10
10
|
end
|
11
11
|
|
@@ -33,16 +33,9 @@ module ActivityLogger
|
|
33
33
|
self.before_destroy {record_model_activity_log("destroy")}
|
34
34
|
end
|
35
35
|
|
36
|
-
def log_controller_activity(
|
37
|
-
|
38
|
-
|
39
|
-
send(:before_filter, options) do |controller|
|
40
|
-
controller.send(:record_controller_activity_log)
|
41
|
-
end
|
42
|
-
|
43
|
-
send(:after_filter, options) do |controller|
|
44
|
-
controller.send(:destroy_parent_activity_id)
|
45
|
-
end
|
36
|
+
def log_controller_activity(options = {})
|
37
|
+
send :before_filter, :record_controller_activity_log, options
|
38
|
+
send :after_filter, :clear_parent_activity_id, options
|
46
39
|
end
|
47
40
|
end
|
48
41
|
end
|