grid_table 1.0.7 → 1.1.rails3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -46,7 +46,8 @@ class GridTable::Control
46
46
  prefix: ->(col) { col.matches("#{param_filter_value}%") },
47
47
  suffix: ->(col) { col.matches("%#{param_filter_value}") },
48
48
  fuzzy: ->(col) { col.matches("%#{param_filter_value}%") },
49
- array: ->(col) { "#{column.to_s} @> ARRAY[#{[param_filter_value].flatten.join(',')}]" }
49
+ array: ->(col) { "#{column.to_s} @> ARRAY[#{[param_filter_value].flatten.join(',')}]" },
50
+ date_range: ->(col) { "#{source_table.name}.#{column.to_s} BETWEEN #{param_filter_value}" }
50
51
  }
51
52
 
52
53
  polymorphic_models.each_with_index do |klass, i|
@@ -92,7 +93,7 @@ class GridTable::Control
92
93
  end
93
94
  records
94
95
  else
95
- joined_control? ? records.includes(active_source).references(active_source) : records
96
+ joined_control? ? records.includes(active_source) : records
96
97
  end
97
98
  end
98
99
 
@@ -1,3 +1,3 @@
1
1
  module GridTable
2
- VERSION = "1.0.7"
2
+ VERSION = "1.1.rails3"
3
3
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grid_table
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
5
- prerelease:
4
+ version: 1.1.rails3
5
+ prerelease: 4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Jon Principe
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-07-27 00:00:00.000000000 Z
13
+ date: 2015-10-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -81,9 +81,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  none: false
83
83
  requirements:
84
- - - ! '>='
84
+ - - ! '>'
85
85
  - !ruby/object:Gem::Version
86
- version: '0'
86
+ version: 1.3.1
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.25