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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OGIyNDNjMzdkOWQ5MjQxNzhjYzJjN2UwN2M4MDI1NmRlZWZjNGRlOA==
4
+ YjM4OGNjZmY3YTRiNDAwNDViNmJlZTcwMmRlZDEwNGU3YjYzNTY4Mg==
5
5
  data.tar.gz: !binary |-
6
- YjFmMzhhMzIzOGRhMWY4MjgwN2I1MWI3ZDQ3Y2U2MTAxNzU2NWMwMQ==
6
+ YWIzNjZmMjg1NjkwMTJhNmI1YzJjODdmNmU0NjRhMjA0NzVkYmJjMg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTljOTMxZmQxMjMzYmQzNWJjOGUzMDgzYzJmMzI5ODU2OTExZmMzMjRmOTAy
10
- NmE5MWY2ZThkMGVlOTM1YWFkMmUyOWRkZGM3NDBiMjkzZTc1MGMwYTA5NTIy
11
- YzBkNjgzYWMwMDVmZmZjZjg3ZTkwYThlOGNmMGJlMmQ5NjhkMmE=
9
+ MGE2MGNhNGY4YzY2MTdlNjNhNTY0MmY3ZDhlZThlNTYwYmQwYjU2ODg4MzEw
10
+ MTE4YTVjMzEwMTFjOGU1NDhiZWZlMjA2NzdhMmU3NDM4NjJjYjJkZjUxZTMw
11
+ NDM2OWMzOGQwNTcxNzdkZjczZjIxNzI0NjQ4OTQyMzIwMWU4OWE=
12
12
  data.tar.gz: !binary |-
13
- Njk0MTIxOGY1ODM4OTI1MGU1NTM3OTQyOTI4NzFlZjI5NzNkNDQ3YWNkOGZl
14
- OGE2ZWVkMTQzYWYyNTQwOWFiMDdiYTA5MWI5N2IyNjdkZDRmZDk5OGY5Y2Y3
15
- ZjBjMmE2ZGRhYTM5YmMwOTlkNjQ3NWM4MWZjZTFhZjUyYjdkOWQ=
13
+ ODBhNTA5YjQ4MWI1Nzg1NTU3YjMzYThkOWI1ZmVlNzA0MWI1ZjljNThiZTg5
14
+ OTBhODYzMzY1ZWRlMWMwY2NkOGM4ZTMyNDlkYTUyMjg4MjBhODI4ZTViZThk
15
+ ZjQ5ZDUyNWRiYWQwYTU2MzJjZDYzMTlhZTNlNzI0ZWJkNTcwMmM=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.1
1
+ 1.2.2
data/activitylog.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "activitylog"
8
- s.version = "1.2.1"
8
+ s.version = "1.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jon Erik Suero", "Elan Dubrofsky"]
@@ -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 user_id: current_user.try(:id), action: "#{params[:controller]}/#{params[:action]}", data: params, action_type: 'controller'
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.)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activitylog
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Erik Suero