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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4be1567cae8c747036e12d5f0f901ae40db48ea7
4
- data.tar.gz: 756dad874f6d9baf5e7c676c8cf55a17570ee18b
3
+ metadata.gz: 6190609d004498935313ded642e9d220e64f8fb8
4
+ data.tar.gz: 8555977773229c34dae33d576f2f9759fb995134
5
5
  SHA512:
6
- metadata.gz: ea9740aeab7fb88efcb13057c52eebf7b589636213226ed526f0ffe2077485f159119858f78dffc6c195850391049589648383d798c94d2a85a2d774b72eaed2
7
- data.tar.gz: 6c116466b4ef43f6e6e984635798772bcc4267ff449cb040a9db00dfbf0c3e1fa8ea1bc82890bd434a326cc1a1d23e0ee899a2a6136f7e3fb4aaf41b2c0eee50
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
 
@@ -1,3 +1,3 @@
1
1
  module Select2Helper
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-07-09 00:00:00.000000000 Z
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.3.0
218
+ rubygems_version: 2.4.1
219
219
  signing_key:
220
220
  specification_version: 4
221
221
  summary: Select2 Helper