effective_logging 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/effective/datatables/logs.rb +15 -6
- data/lib/effective_logging/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a53ba2fe5f709b8ed5dab64862c8cd7b0d0d7d4
|
4
|
+
data.tar.gz: e7e8cf96aef015e480854c983775476ced0456ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba39530e19aa75e37faba8ed946f3c5cb0ba2e535953f3ceda1ecb1e9014c075def5bf6144cc3ea79f6bf529304521578b5ff190f98633e6725dbc7c8d3edd7c
|
7
|
+
data.tar.gz: a3b9220d9f97ffe7fd791f2b7f88f45b8dd618917d8566e6b5e840ec6aa8acc31b508392115af1e676909c997a19bff6fbe1cf65c1f104701322bb9ed8f47b74
|
@@ -7,17 +7,25 @@ if defined?(EffectiveDatatables)
|
|
7
7
|
default_order :created_at, :desc
|
8
8
|
|
9
9
|
table_column :created_at
|
10
|
-
table_column :user
|
11
10
|
|
12
|
-
table_column :
|
13
|
-
table_column :message, :width => '50%'
|
11
|
+
table_column :id, visible: false
|
14
12
|
|
15
|
-
table_column :
|
13
|
+
table_column :parent_id, visible: false
|
14
|
+
table_column :user, :if => proc { attributes[:user_id].blank? }
|
15
|
+
|
16
|
+
table_column :status, filter: { type: :select, values: EffectiveLogging.statuses }
|
17
|
+
|
18
|
+
table_column :message, width: '50%', sortable: false
|
19
|
+
table_column :logs_count, visible: false
|
20
|
+
|
21
|
+
table_column :details, visible: false, sortable: false do |log|
|
16
22
|
log.details.delete(:email)
|
17
|
-
tableize_hash(log.details, :
|
23
|
+
tableize_hash(log.details, th: true, sub_th: false, width: '100%')
|
18
24
|
end
|
19
25
|
|
20
|
-
table_column :
|
26
|
+
table_column :updated_at, visible: false
|
27
|
+
|
28
|
+
table_column :actions, sortable: false, filter: false do |log|
|
21
29
|
show_path =
|
22
30
|
if datatables_active_admin_path?
|
23
31
|
admin_effective_log_path(log)
|
@@ -43,6 +51,7 @@ if defined?(EffectiveDatatables)
|
|
43
51
|
Effective::Log.unscoped.where(:parent_id => attributes[:log_id]).includes(:user)
|
44
52
|
end
|
45
53
|
end
|
54
|
+
|
46
55
|
end
|
47
56
|
end
|
48
57
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|