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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 67c0975883d30b8e5dbe4089cad22f56cd84b1a9
4
- data.tar.gz: 6b1597f81b525e93ffab32ce612f237ffaba025f
3
+ metadata.gz: 8e3e8608906b1a0edf426923f425055dd52994fd
4
+ data.tar.gz: 8dd0812d097155d9ec73600aca329cc26db3e940
5
5
  SHA512:
6
- metadata.gz: 2c61ddca862990892d09a2d7dd5d1e52de9250f672687343dcea9568428bc6e4ba79e847687763c44e71a455ae25a6466403869ed876dfc311ef0dcde1c676f8
7
- data.tar.gz: 030372b9bd7cb166a5e43862f3e98b5d7cb3700d2d69deda794ecb294293d8a26f1e919c6802f896a65656a7c52bcb5c1afd08c25fcabcbf6b9e4cce191263a1
6
+ metadata.gz: 1466f9defce917509edcc3937c5f30b2045787ee3cae64c316f4a7e638278af661569af0c1edebaa0bb33f805ef3588c98021cd8438d8185feb6fe8c3a79a9e8
7
+ data.tar.gz: 209f246f8b88b8a2aba3fd70add1fd0328e7afc09abf2b72b46fd243f44dea1f6f4118dbcaaaaec81c54ec184c9e8e2afcf0e886197bc8ef8142e173f713a3c8
@@ -1,3 +1,3 @@
1
1
  module PaperTrailAudit
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
@@ -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
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-03 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails