mongoid-audit 1.0.0.beta.1 → 1.0.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -1
- data/lib/mongoid-audit/rails_admin.rb +1 -1
- data/lib/mongoid-audit/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6110f867cfbe6c4f85a26e024bb199318a8cde3d
|
|
4
|
+
data.tar.gz: cc04342cab7ee764db39faa22dfb27d67f47d942
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 710235e1c4ba7383e4aacf65230fe7586e8f3e67972ed827c81f8b0f63e7f9b48bf08fc882991465feb8dacd371017c5de76ed6dfc648e4cd2375c46ac8a77e7
|
|
7
|
+
data.tar.gz: 3c7c560f550cdd5951a24c8b4a61d51202d131c169f033f1e2b32615810993049fb67ce3a5655c1febf4a41ceb16f6c89c10b017cb0bc6040831dc6993eb7cfd
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -58,14 +58,16 @@ Identical to Mongoid::History.
|
|
|
58
58
|
See https://github.com/aq1018/mongoid-history
|
|
59
59
|
|
|
60
60
|
include Mongoid::History::Trackable
|
|
61
|
+
include Mongoid::Userstamp
|
|
61
62
|
track_history({
|
|
62
63
|
track_create: true,
|
|
63
64
|
track_destroy: true,
|
|
64
65
|
track_update: true,
|
|
65
66
|
modifier_field: :updater,
|
|
66
|
-
except: ["created_at", "updated_at", "c_at", "u_at"],
|
|
67
|
+
except: ["created_at", "updated_at", "c_at", "u_at", "clicks", "impressions", "some_other_your_field"],
|
|
67
68
|
})
|
|
68
69
|
|
|
70
|
+
|
|
69
71
|
### Rails Admin Integration
|
|
70
72
|
|
|
71
73
|
Add
|
|
@@ -38,7 +38,7 @@ module RailsAdmin
|
|
|
38
38
|
index = 0
|
|
39
39
|
assoc = @version.association_chain
|
|
40
40
|
while !assoc[index+1].nil?
|
|
41
|
-
table = assoc[index]['name'].constantize.relations[assoc[index+1]['name']]
|
|
41
|
+
table = assoc[index]['name'].constantize.relations[assoc[index+1]['name']].class_name
|
|
42
42
|
index += 1
|
|
43
43
|
end
|
|
44
44
|
table
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mongoid-audit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.0
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gleb Tv
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mongoid
|
|
@@ -146,9 +146,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
146
146
|
version: '0'
|
|
147
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
requirements:
|
|
149
|
-
- - "
|
|
149
|
+
- - ">="
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
|
-
version:
|
|
151
|
+
version: '0'
|
|
152
152
|
requirements: []
|
|
153
153
|
rubyforge_project:
|
|
154
154
|
rubygems_version: 2.2.2
|