express_admin 1.7.29 → 1.7.30

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: ef8cec8a16d8b19753bb84b13648532cf14f696f
4
- data.tar.gz: 47d9fe386d1018d71caa8548da23340b16f92c18
3
+ metadata.gz: d82b87132256121784e3e892a5a0d3aaaad7e4e9
4
+ data.tar.gz: 3ef8d6949a69b5e92cb3f39f6ac085bc0829a0e5
5
5
  SHA512:
6
- metadata.gz: fe38c39fc5686864203803f68ae1611a89c324bac1c96411d1cb1961fc06511463b176b54bd64396fda049ae43f8078fcda8f872d02ed247322b48ae4bdc1321
7
- data.tar.gz: 4d38dd9c209e8f3149ad44d9cd4110fdc22c5615518b9c3bf0bac949181d368559cdc9331ee69923bd10397c46d66316aeadca0039a348a40fd0875b05e01413
6
+ metadata.gz: f02135bc0897a255a969b7087e1082bdafa587767780575f98948f7d2c8cfc948e840025ec28046ae3e6e953573634dab138882ec8db5e6e21392353c1b7c33a
7
+ data.tar.gz: 52b48b4e451a52e14d5b9df7dda7605b81361030fa0e524533b7842dae327d323d1fe73130d63f1c564583853c55c5f8e17ce66c5f8ef4e062439a701137f82c
@@ -237,11 +237,15 @@ module ExpressAdmin
237
237
  else
238
238
  resource_class
239
239
  end
240
- filtered_scope = filter(scope) # TODO: Removed the conditionally invoked .all
240
+ filtered_scope = filter(ordered_scope(scope)) # TODO: Removed the conditionally invoked .all
241
241
  # scope = params[:asc] || params[:desc] ? sort_table(scope) : scope
242
242
  self.instance_variable_set(collection_ivar, filtered_scope)
243
243
  end
244
244
 
245
+ def ordered_scope(scope)
246
+ scope
247
+ end
248
+
245
249
  def filter(scope)
246
250
  if _filter_field
247
251
  scope.kind_of?(Array) ? _array_filter(scope) : _sql_filter(scope)
@@ -1,3 +1,3 @@
1
1
  module ExpressAdmin
2
- VERSION = "1.7.29"
2
+ VERSION = "1.7.30"
3
3
  end
@@ -67,7 +67,7 @@ module ExpressAdmin
67
67
  test "#index should expose a collection of resources" do
68
68
  widgets_controller.index
69
69
  assert collection, "@widgets not provided by #index"
70
- refute collection.empty?, "@widgets is empty"
70
+ refute collection.all.empty?, "@widgets is empty"
71
71
  end
72
72
 
73
73
  test "#edit should expose an instance of resource if found" do
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150812073447) do
14
+ ActiveRecord::Schema.define(version: 20150928044202) do
15
15
 
16
16
  create_table "categories", force: :cascade do |t|
17
17
  t.string "name"
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: express_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.29
4
+ version: 1.7.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Talcott Smith