user_actions_logger 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '049ab048c97a67940ba6abe2448190d17fe7c08a8325d85fc41e51f718b00f0a'
4
- data.tar.gz: 6cc181190a6e5d00f3ad2b62aa0105db054497728867774cb197677818997348
3
+ metadata.gz: b33d0cfe91985687fc18611466b03e9022d6f3bbcf4b35dd4945cfa7be8f5041
4
+ data.tar.gz: 61a74db2535549f856a8fbe52c78b4b94eb0aa0c605d378455e92e812a2159df
5
5
  SHA512:
6
- metadata.gz: 771f2c5c75e98d816a81923d4f42797f53f7b1169cc26cd392251d355d22f8bce3dd7ccdc5ab6e16ea1d43791d19157b2f3be62665fb3104e9be5fe99ee6b057
7
- data.tar.gz: 3fb036b8d934eeebe8c567201a30678b3310a36cb7cbc10ddf00726d1b09f2e4fc16d7c7de45d6628a44e5241e088f29a18d2a529f46d23e1f5365c0adb792a6
6
+ metadata.gz: be971a6a60cab96348e7dd9f8badd305164c6fe690b22711487f7f03c094325404f950f843a2fb1b2c7fd561f4f47ed7f229c58be415c8bb39b9afb3d1baa8dd
7
+ data.tar.gz: d8b3dd98913f682c785af6087e6027483547b45db976df10cf8e0086303a44ad28b66ebeb2952421dffcfc9daa1fcdc4ddd9d54e7e3ecc1d7d2af6612abb2cfd
@@ -2,7 +2,7 @@ namespace :user_actions_logger do
2
2
  # rake user_actions_logger:install
3
3
 
4
4
  task install: :environment do
5
- `rails generate model Logging user object action module_name`
5
+ `rails generate model Logging user object action module_name loggable_id:integer loggable_type`
6
6
  puts "model and migration created. run: 'rake db:migrate'"
7
7
  end
8
8
  task uninstall: :environment do
@@ -33,7 +33,8 @@ module UserActionsLogger
33
33
  log.user = who_did_it
34
34
  log.object = watch_for.to_json
35
35
  log.action = what_did
36
- log.module_name = where_did
36
+ log.loggable_type = where_did
37
+ log.loggable_id = watch_for.id
37
38
  log.save
38
39
  end
39
40
  end
@@ -2,8 +2,8 @@ $:.push File.expand_path("../lib", __FILE__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'user_actions_logger'
5
- s.version = '0.1.4'
6
- s.date = '2018-04-01'
5
+ s.version = '0.1.5'
6
+ s.date = '2018-06-19'
7
7
  s.summary = 'UserAsctionLogger - Simple gem for loggin user actions'
8
8
  s.description = 'Logging user actions in loggings table if you use SQL. But you can use this gem whith no-sql db'
9
9
  s.author = 'Yurich May'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_actions_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yurich May
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-01 00:00:00.000000000 Z
11
+ date: 2018-06-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Logging user actions in loggings table if you use SQL. But you can use
14
14
  this gem whith no-sql db