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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7403fe3327b28b8f84977469b565964981bc0608
4
- data.tar.gz: 41d3d0730dfcc1ea9618bab4e9e39c098ad50a52
3
+ metadata.gz: 7a53ba2fe5f709b8ed5dab64862c8cd7b0d0d7d4
4
+ data.tar.gz: e7e8cf96aef015e480854c983775476ced0456ef
5
5
  SHA512:
6
- metadata.gz: fd177c572ef4d57f23dbfc9ac8d5d38bea1a56b3476f99955a52753241aabdc0dcb27d27ea6882c7e58e3733dd47e48ad7331d24eecb02a63a3b62b8986bdc07
7
- data.tar.gz: 31f23fec3d1b5347423fe0b539c7b874ea0af6ba5797b10f2a37325d72aa35536d7bc4eb0be043d083e58b0a019f9dfe8ae79c3edd47aa207dcfce31ecf32052
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 :status, :filter => {:type => :select, :values => EffectiveLogging.statuses }
13
- table_column :message, :width => '50%'
11
+ table_column :id, visible: false
14
12
 
15
- table_column :details, :visible => false do |log|
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, :th => true, :sub_th => false, :width => '100%')
23
+ tableize_hash(log.details, th: true, sub_th: false, width: '100%')
18
24
  end
19
25
 
20
- table_column :actions, :sortable => false, :filter => false do |log|
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveLogging
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.2'.freeze
3
3
  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.0
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: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2015-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails