ransack_ui 1.3.2 → 1.3.3

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: f3150d63c75e6971bbd056c8886ca13f1ec70553
4
- data.tar.gz: db22ff143a582c8e295c703562b01018b96a8043
3
+ metadata.gz: c6437e9ac6dde8506d7593890aa7d90859422d8e
4
+ data.tar.gz: d66d83b1a2cb81a197a708cd52b12ff9b3c010e2
5
5
  SHA512:
6
- metadata.gz: 3b9cdaff293d3fd5395d705e79137c81eb0811f5a830c4b47c8c8d1494c55835fb469c830d53e0c9461ff92b3c4537c9b1d0779eb0c5608468a7e5df83b571dd
7
- data.tar.gz: 1787280416d9cdfb9c9ed35a1ea13540e2fc335fd25fb24aa618faf2999aa0c221661783f2c9c0e29f39ebb24772f61533d196107fc0abfeb26c663d18245d51
6
+ metadata.gz: a36ad04c91c615bbaad78a10e73385a09efc242d89f90232375fcfd27bf2a613a3592b402423e9988ff45e87253471eb20ed2a02614337c6859819621f12867d
7
+ data.tar.gz: 1b7df5282b4519f2fb5532fd63a0ee61f0f0c94ce2f73ffda6466b4a2f4dd6515395703716959cf55333973227e3410f492155441ef8853852131c0224764696
@@ -24,7 +24,7 @@ module RansackUI
24
24
  # (Default to :string type for ransackers)
25
25
  def ransackable_attributes(auth_object = nil)
26
26
  columns.map{|c| [c.name, c.type] } +
27
- _ransackers.keys.map {|k| [k, :string] }
27
+ _ransackers.keys.map {|k,v| [k, v.type || :string] }
28
28
  end
29
29
 
30
30
  def ransackable_associations(auth_object = nil)
@@ -8,7 +8,7 @@ module Ransack
8
8
  # (Default to :string type for ransackers)
9
9
  def ransackable_attributes(auth_object = nil)
10
10
  columns.map{|c| [c.name, c.type] } +
11
- _ransackers.keys.map {|k| [k, :string] }
11
+ _ransackers.keys.map {|k,v| [k, v.type || :string] }
12
12
  end
13
13
 
14
14
  def self.extended(base)
@@ -1,3 +1,3 @@
1
1
  module RansackUI
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ransack_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Broadbent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-09 00:00:00.000000000 Z
11
+ date: 2015-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ransack_chronic