paper_trail-audit 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paper_trail-audit/version.rb +1 -1
- data/lib/paper_trail-audit.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e3e8608906b1a0edf426923f425055dd52994fd
|
4
|
+
data.tar.gz: 8dd0812d097155d9ec73600aca329cc26db3e940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1466f9defce917509edcc3937c5f30b2045787ee3cae64c316f4a7e638278af661569af0c1edebaa0bb33f805ef3588c98021cd8438d8185feb6fe8c3a79a9e8
|
7
|
+
data.tar.gz: 209f246f8b88b8a2aba3fd70add1fd0328e7afc09abf2b72b46fd243f44dea1f6f4118dbcaaaaec81c54ec184c9e8e2afcf0e886197bc8ef8142e173f713a3c8
|
data/lib/paper_trail-audit.rb
CHANGED
@@ -51,6 +51,7 @@ module PaperTrailAudit
|
|
51
51
|
#
|
52
52
|
# @param [array of params to audit] *params describe *params
|
53
53
|
def paper_trail_audit_for(*params)
|
54
|
+
return warn("PaperTrailAudit WARNING: No table exists for #{self}") if self.connection.tables.empty?
|
54
55
|
params = params.flatten
|
55
56
|
params.each do |param|
|
56
57
|
if self.column_names.include?(param.to_s)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paper_trail-audit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Chang
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|