activeadmin-ajax_filter 0.3.5 → 0.3.6

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: c3c7f4aee3fd33b595a1ffc93607105ddf846bd5
4
- data.tar.gz: e8f49b3b765797df812bea7f0a0eb83a544c76ad
3
+ metadata.gz: 9cb7aa5a0c59aba7801bdc4fe6a30bfd7a691df5
4
+ data.tar.gz: 37be94d419e2fc0892eb813380544b034100d7db
5
5
  SHA512:
6
- metadata.gz: dd107194fc32f19bf54573adcf15d6e63d5cee4d770d6584771c9b67c4e3421053b2b1de824e7832e0edda824ff0a35284e890da0c209583406266f0614e23b6
7
- data.tar.gz: 80cd974c4dbd3ea41b283af0cfc049e839f82ad59f2cf0c5fd6f09a1c53dd2ffe80bda9448450e0fdc3b88a77a4f94b89ef1e931c0fe3ae88b4423b13b003245
6
+ metadata.gz: 5243df321869f832fc8205e5b682ed819b587db49532d1585bbc8bc1ce2764eb11369bbd19c68654abddfb98370b7a0344cd7334ae24a2f85c3fccaaf6654161
7
+ data.tar.gz: 5e29bcd580b55b2e0cd673d067f06e92835cc6e5c85f63a59b8b076e457b3e349adcc23a4f3663d56cac8e3a3e0a822f26b4e55d43ca87371ba63fffd83afc75
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- activeadmin-ajax_filter (0.3.4)
4
+ activeadmin-ajax_filter (0.3.5)
5
5
  activeadmin (>= 1.0.0.pre1)
6
6
  coffee-rails (>= 4.1.0)
7
7
  selectize-rails (>= 0.11.2)
@@ -127,16 +127,14 @@ GEM
127
127
  mime-types (2.99.1)
128
128
  mini_portile2 (2.1.0)
129
129
  minitest (5.8.4)
130
- multi_json (1.12.1)
131
130
  nokogiri (1.6.8)
132
131
  mini_portile2 (~> 2.1.0)
133
132
  pkg-config (~> 1.1.7)
134
- phantomjs (1.9.8.0)
133
+ phantomjs (2.1.1.0)
135
134
  pkg-config (1.1.7)
136
- poltergeist (1.6.0)
135
+ poltergeist (1.10.0)
137
136
  capybara (~> 2.1)
138
137
  cliver (~> 0.3.1)
139
- multi_json (~> 1.0)
140
138
  websocket-driver (>= 0.2.0)
141
139
  polyamorous (1.3.1)
142
140
  activerecord (>= 3.0)
@@ -243,8 +241,8 @@ DEPENDENCIES
243
241
  database_cleaner (~> 1.5.0)
244
242
  factory_girl_rails
245
243
  launchy (~> 2.4.3)
246
- phantomjs (~> 1.9.8)
247
- poltergeist (~> 1.6.0)
244
+ phantomjs (~> 2.1.1)
245
+ poltergeist (~> 1.10.0)
248
246
  rake (~> 10.0)
249
247
  rspec (~> 3.3, >= 3.3.0)
250
248
  rspec-rails (~> 3.3)
@@ -31,8 +31,8 @@ Gem::Specification.new do |gem|
31
31
  gem.add_development_dependency 'temping', '~> 3.3', '>= 3.3.0'
32
32
  gem.add_development_dependency 'codeclimate-test-reporter', '~> 0.4'
33
33
  gem.add_development_dependency 'capybara', '~> 2.1'
34
- gem.add_development_dependency 'phantomjs', '~> 1.9.8'
35
- gem.add_development_dependency 'poltergeist', '~> 1.6.0'
34
+ gem.add_development_dependency 'phantomjs', '~> 2.1.1'
35
+ gem.add_development_dependency 'poltergeist', '~> 1.10.0'
36
36
  gem.add_development_dependency 'database_cleaner', '~> 1.5.0'
37
37
  gem.add_development_dependency 'launchy', '~> 2.4.3'
38
38
  end
@@ -14,8 +14,7 @@ module ActiveAdmin
14
14
  def included(dsl)
15
15
  dsl.instance_eval do
16
16
  collection_action :filter, method: :get do
17
- scope = collection.ransack(params[:q]).result
18
- scope = scope.order(params[:order]).limit(params[:limit] || 10)
17
+ scope = collection.order(params[:order]).limit(params[:limit] || 10)
19
18
  scope = apply_collection_decorator(scope)
20
19
 
21
20
  render plain: scope.to_json
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module AjaxFilter
3
- VERSION = '0.3.5'
3
+ VERSION = '0.3.6'
4
4
  end
5
5
  end
@@ -30,7 +30,7 @@ module ActiveAdmin
30
30
  end
31
31
 
32
32
  def collection_from_association
33
- super.try(:limit, collection_limit)
33
+ super.try(:limit, collection_limit).try(:ransack, static_ransack).result
34
34
  end
35
35
 
36
36
  def value_field
@@ -72,4 +72,4 @@ module ActiveAdmin
72
72
  end
73
73
  end
74
74
  end
75
- end
75
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin-ajax_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Emelyanov
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-30 00:00:00.000000000 Z
11
+ date: 2017-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -202,28 +202,28 @@ dependencies:
202
202
  requirements:
203
203
  - - "~>"
204
204
  - !ruby/object:Gem::Version
205
- version: 1.9.8
205
+ version: 2.1.1
206
206
  type: :development
207
207
  prerelease: false
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
210
  - - "~>"
211
211
  - !ruby/object:Gem::Version
212
- version: 1.9.8
212
+ version: 2.1.1
213
213
  - !ruby/object:Gem::Dependency
214
214
  name: poltergeist
215
215
  requirement: !ruby/object:Gem::Requirement
216
216
  requirements:
217
217
  - - "~>"
218
218
  - !ruby/object:Gem::Version
219
- version: 1.6.0
219
+ version: 1.10.0
220
220
  type: :development
221
221
  prerelease: false
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
224
  - - "~>"
225
225
  - !ruby/object:Gem::Version
226
- version: 1.6.0
226
+ version: 1.10.0
227
227
  - !ruby/object:Gem::Dependency
228
228
  name: database_cleaner
229
229
  requirement: !ruby/object:Gem::Requirement
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
302
  version: '0'
303
303
  requirements: []
304
304
  rubyforge_project:
305
- rubygems_version: 2.6.2
305
+ rubygems_version: 2.6.8
306
306
  signing_key:
307
307
  specification_version: 4
308
308
  summary: AJAX filters for ActiveAdmin