effective_datatables 2.6.1 → 2.6.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: 3597f4d25da2086e8dc75eadb9b7357dcc8d6f07
4
- data.tar.gz: 0d9d78236679a654433fd819c8048ca790648f40
3
+ metadata.gz: 3c5c7ab8d7724c124432c84b68f30e64319d63b7
4
+ data.tar.gz: 7043d4ee61a22130f4e4340fe7777c0918c48511
5
5
  SHA512:
6
- metadata.gz: 9c12a4f93799e423db3c1e2c01de77cb8da0466b20bc058dccdefc09c60215142a76c315133250869705e186f228b46a57790d07be5c1c9bbee3eb359d03e5de
7
- data.tar.gz: 9bbafa5c6a4932195877834860073c4a9b28b1d27ca7a14526cedeaccf6ffc0fe4e6b5cac9fd3ce966d21aa103fcfa9bc243a3e361fbe381f5e1e7590ffe20d3
6
+ metadata.gz: 980a3fe2449272c706a29db50e6f1df851d189d85593e948cfeb71ee273a1b4bc2628a69397da7aadc6b6fee1a42d008cda90d621b78f86350bdc90bb676afcb
7
+ data.tar.gz: bb5fb08f1e8dcd8eb42741804dda7c2dce61dc2157cef64fbbf81eba752b240ef33a1f018fc6b81e6a58b723959b37bba4da48d1bd6294a650283a5508b43d22
@@ -118,6 +118,8 @@ module Effective
118
118
  :effective_address
119
119
  elsif sql_column.try(:type).present?
120
120
  sql_column.type
121
+ elsif name.end_with?('_id')
122
+ :integer
121
123
  else
122
124
  :string # When in doubt
123
125
  end
@@ -126,7 +128,7 @@ module Effective
126
128
  cols[name][:class] = "col-#{cols[name][:type]} col-#{name} #{cols[name][:class]}".strip
127
129
 
128
130
  # Formats
129
- if name == 'id' || name.include?('year') || name.include?('_id')
131
+ if name == 'id' || name.include?('year') || name.end_with?('_id')
130
132
  cols[name][:format] = :non_formatted_integer
131
133
  end
132
134
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveDatatables
2
- VERSION = '2.6.1'.freeze
2
+ VERSION = '2.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_datatables
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.1
4
+ version: 2.6.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: 2016-07-04 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails