activitylog 1.2.1 → 1.2.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 +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjM4OGNjZmY3YTRiNDAwNDViNmJlZTcwMmRlZDEwNGU3YjYzNTY4Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YWIzNjZmMjg1NjkwMTJhNmI1YzJjODdmNmU0NjRhMjA0NzVkYmJjMg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGE2MGNhNGY4YzY2MTdlNjNhNTY0MmY3ZDhlZThlNTYwYmQwYjU2ODg4MzEw
|
10
|
+
MTE4YTVjMzEwMTFjOGU1NDhiZWZlMjA2NzdhMmU3NDM4NjJjYjJkZjUxZTMw
|
11
|
+
NDM2OWMzOGQwNTcxNzdkZjczZjIxNzI0NjQ4OTQyMzIwMWU4OWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODBhNTA5YjQ4MWI1Nzg1NTU3YjMzYThkOWI1ZmVlNzA0MWI1ZjljNThiZTg5
|
14
|
+
OTBhODYzMzY1ZWRlMWMwY2NkOGM4ZTMyNDlkYTUyMjg4MjBhODI4ZTViZThk
|
15
|
+
ZjQ5ZDUyNWRiYWQwYTU2MzJjZDYzMTlhZTNlNzI0ZWJkNTcwMmM=
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.2
|
data/activitylog.gemspec
CHANGED
@@ -21,8 +21,7 @@ module ActivityLogger
|
|
21
21
|
object = controller_name.classify.constantize.find_by_id(params[:id])
|
22
22
|
return unless object.present?
|
23
23
|
return unless object.respond_to? :activity_logs
|
24
|
-
object.activity_logs.create
|
25
|
-
self.stored_parent_activity_id = activity.id
|
24
|
+
self.stored_parent_activity_id = object.activity_logs.create(user_id: current_user.try(:id), action: "#{params[:controller]}/#{params[:action]}", data: params, action_type: 'controller').id
|
26
25
|
end
|
27
26
|
|
28
27
|
# CLASS METHODS (self.)
|