mongoid-audit 0.1.2 → 0.1.3

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.
@@ -16,7 +16,7 @@ module RailsAdmin
16
16
  end
17
17
 
18
18
  def table
19
- @version.trackable.class.collection_name
19
+ @version.association_chain.last['name']
20
20
  end
21
21
 
22
22
  def username
@@ -24,7 +24,7 @@ module RailsAdmin
24
24
  end
25
25
 
26
26
  def item
27
- @version.trackable.id
27
+ @version.association_chain.last['id']
28
28
  end
29
29
  end
30
30
 
@@ -1,5 +1,5 @@
1
1
  module Mongoid
2
2
  module Audit
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-audit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: