mongoid-audit 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid-audit/rails_admin.rb +2 -2
- data/lib/mongoid-audit/version.rb +1 -1
- metadata +4 -3
@@ -8,7 +8,7 @@ module RailsAdmin
|
|
8
8
|
|
9
9
|
def message
|
10
10
|
@message = @version.action
|
11
|
-
@version.respond_to?(:modified) ? @message + " [" + @version.modified.to_a.map{ |c| c[0] + " = " + c[1].to_s }.join(", ") + "]" : @message
|
11
|
+
@version.respond_to?(:modified) ? @message + ' ' + table + " [" + @version.modified.to_a.map{ |c| c[0] + " = " + c[1].to_s }.join(", ") + "]" : @message
|
12
12
|
end
|
13
13
|
|
14
14
|
def created_at
|
@@ -43,7 +43,7 @@ module RailsAdmin
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def latest
|
46
|
-
@version_class.limit(
|
46
|
+
@version_class.order_by([:_id, :desc]).limit(20).map { |version| VersionProxy.new(version) }
|
47
47
|
end
|
48
48
|
|
49
49
|
def delete_object(object, model, user)
|
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.
|
4
|
+
version: 0.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: easy_diff
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 1.8.
|
174
|
+
rubygems_version: 1.8.22
|
175
175
|
signing_key:
|
176
176
|
specification_version: 3
|
177
177
|
summary: Easily track model change history and mantain audit log with mongoid
|
@@ -182,3 +182,4 @@ test_files:
|
|
182
182
|
- spec/support/mongoid.rb
|
183
183
|
- spec/trackable_spec.rb
|
184
184
|
- spec/tracker_spec.rb
|
185
|
+
has_rdoc:
|