table_sortable 0.4.1 → 0.4.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 414ad1ad4a15f2448b8cfc323643300df4323277
4
- data.tar.gz: b91cbc3a7b206e30bfa4e7e1efe9347b643397f1
3
+ metadata.gz: 3ecb8551e2152e42546781c82d866c4c7f4e553f
4
+ data.tar.gz: f40ad9da19a795eac67d3440348e9e4dd4ed04df
5
5
  SHA512:
6
- metadata.gz: ad496cb8a9fcfeb14fc0a6e671c4e1de8c82a0bf9d3e8a0083b0dbad4b9daa5b0e083579f8af0fb2bfa7beaeb3a4ee98fdf26a7464e3cb0377c306a995481ae5
7
- data.tar.gz: 04e2369172b66393ae0484d6abb5bc58b6721fbcad44d4bf5b09a64a52c56ff544ca4899863d31010ab761704620e20a2fb2c55f3fbee2cac31ac6c95bbd767d
6
+ metadata.gz: 7e9e9efd48707ffb3462835505136556b70417aeb9fd252b86dff2be63b4034ee976105bffd163f1d929889e6f11650e0bde918280c4e735a61c6e60503d7a13
7
+ data.tar.gz: 3e21bb44455b931a6945c188fd2556314c295ae856efdbf527a31d3d4bec39bc67a2a8d9639ead45c43f59355f5224c1cf37ab7e36fcc8d82eab54f2241e15e0
@@ -83,7 +83,7 @@ module TableSortable
83
83
  ordered_actions(scope.first).reverse.each_with_index do |action, i|
84
84
  actions << ->(records) { action.used? ? (actions[i].call(action.run(records))) : actions[i].call(records) }
85
85
  end
86
- scope = actions.last.call(scope)
86
+ scope = actions.last.call(scope) unless scope.blank?
87
87
  if @query_params.page
88
88
  scope = Result.new(scope, @query_params.page, @query_params.page_size)
89
89
  end
@@ -1,3 +1,3 @@
1
1
  module TableSortable
2
- VERSION = "0.4.1"
2
+ VERSION = "0.4.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: table_sortable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oded Davidov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-21 00:00:00.000000000 Z
11
+ date: 2017-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler