pupper 0.1.0 → 0.1.1

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: '0290fefffb2e32822798c08c308a923748e6401c'
4
- data.tar.gz: e599fee355ab08a376567c4adfea8817d60565bb
3
+ metadata.gz: 5254de6ad2297a42978c07b76554ffa88e77acf9
4
+ data.tar.gz: 21e92e7675343235be8a54bbe26dacd6922bd6b8
5
5
  SHA512:
6
- metadata.gz: 46a4bdb94f785741e88964ed7d64c3620c0ccb9e74f2d94a964eb7538af62461c0cbc4f558094979b72c43c083aab3efa5e2ffc0f00aa754d6d58967c8f7ed58
7
- data.tar.gz: b92a2e1245d5d0a112bf53f53a3d39e815aab35aacaa6ab8912be0ce751374ca33965ea177bdc1afc8bbace7b58be2a665d8368c051df21366b0d73386126790
6
+ metadata.gz: 5bd6a803117e14f21a0e6a63f109260c981b161308b35d15005cd64ddd6c97af5c70cd6243e730cd86660aa744f4926414c4da6a036f7cfdc2fbb13baac206c4
7
+ data.tar.gz: 82cd39bfe166b9eb4494e7ec5a72eb5bb2cea831dc1ca97a3ea95436acb4f74634f5503ce8c0a474a16e3740c63fadfaea8bb5ada9aeb76f11489a704f4bf1de
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ .rspec_status
@@ -31,7 +31,7 @@ module Pupper
31
31
  end
32
32
 
33
33
  def audit_logs
34
- AuditLog.where(auditable_type: model_name.name, auditable_id: primary_key)
34
+ audit_model.where(auditable_type: model_name.name, auditable_id: primary_key)
35
35
  end
36
36
 
37
37
  def create_audit_log
data/lib/pupper/model.rb CHANGED
@@ -33,7 +33,7 @@ module Pupper
33
33
  end
34
34
 
35
35
  def primary_key
36
- send(self.class.primary_key)
36
+ attributes.fetch(self.class.primary_key)
37
37
  end
38
38
  end
39
39
 
@@ -1,3 +1,3 @@
1
1
  module Pupper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pupper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lee Machin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler