select2_helper 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/select2_controller.rb +1 -1
- data/lib/select2_helper/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6190609d004498935313ded642e9d220e64f8fb8
|
4
|
+
data.tar.gz: 8555977773229c34dae33d576f2f9759fb995134
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62cf0aed9030924a9df00374736100748a51c8b8ef24de375912900f36f91b0041b1cb8272cd2cbd91f7f372e5502f7dab1e79bb371fe036c1bef87fea8878c5
|
7
|
+
data.tar.gz: 6a38cfa5f7565b58f46e6aa16e8aa8a11260dff39f3ec35f01ed6278c389ada460e235c244bad93e7fd30a91b4b9ff9d1fb3e66f9ebff644ba7fe2ac02d46b79
|
@@ -12,7 +12,7 @@ class Select2Controller < ApplicationController
|
|
12
12
|
raise InvalidModel unless model < Select2Concern
|
13
13
|
raise NotInWhiteList unless model.select2_allowed_search? params[:column].to_sym
|
14
14
|
@records = model.page(params[:page])
|
15
|
-
@records = @records.where(params[:where]) if params[:where]
|
15
|
+
@records = @records.where(params[:where].to_h) if params[:where]
|
16
16
|
@records = @records.where("#{params[:column]} ILIKE ?", "%#{params[:term]}%") if params[:term].present?
|
17
17
|
end
|
18
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: select2_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tony
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -215,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
version: '0'
|
216
216
|
requirements: []
|
217
217
|
rubyforge_project:
|
218
|
-
rubygems_version: 2.
|
218
|
+
rubygems_version: 2.4.1
|
219
219
|
signing_key:
|
220
220
|
specification_version: 4
|
221
221
|
summary: Select2 Helper
|