rails_core_extensions 0.6.0 → 0.6.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
  SHA256:
3
- metadata.gz: c7a7bd9b6bb639dc50a122b94ee7b46128875ab70b493d2c0846f795308ae5ef
4
- data.tar.gz: b5ed7c23cb5b1102a7332c31c7df5291a8b6f19fd3417283af991e122ce8cbd6
3
+ metadata.gz: 26556e1dd49cc422958adaf594ec55b6e23b2c22f2fb49c9adfad999a44c206d
4
+ data.tar.gz: 1f38b14cd718ff41fb7cbdb8f945cb1608cb9f27cc5ef5121c28fadc6f1e1d1b
5
5
  SHA512:
6
- metadata.gz: 1f9327c73a62ed82c97dac61fa7eed4bb56ab1c54a1993e7299abdddb6c3c3d316889e422f7c6eaf889a7819628f84599b86c565740034053fd4e9674dbc06d5
7
- data.tar.gz: 3afa1de1ffe2875da34aa4cacff8081101f979c9c92d5528956394ea32c35176904368c888cfb4c58c82d9cd169a5d33064ac9ce6e883020b9b90a19d1736ad3
6
+ metadata.gz: 8b5a5a536d2bd3af02c5cb50fdd91827f5e0dbdc887c82e8cc8e08bc556a4602af639284c546a8dd0756d1422a6ad0d275e164ca51ed7432e38ae1aa22a50d15
7
+ data.tar.gz: 401b5f3c3f0a240738c1f069d26ca3bd73a3a4b9b92e09714290acf44ac8a2de4771400bbec423318440e55c8d03ba60d08ae8b3d4cc2e1b9cbe81c141d8246c
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1
4
+
5
+ * [TT-5671] More fixes to sortable
6
+
3
7
  ## 0.6.0
4
8
 
5
9
  * [TT-5542] Remove Rails 4 support
@@ -26,7 +26,7 @@ module RailsCoreExtensions
26
26
  collection = @klass.reorder(:position)
27
27
  collection = collection.where(@params.slice(scope)) unless scope.blank?
28
28
 
29
- sort_collection(collection, sorted_id_list.map(&:to_i))
29
+ sort_collection(collection.find(sorted_id_list.map(&:to_i)), sorted_id_list.map(&:to_i))
30
30
  end
31
31
 
32
32
  private
@@ -1,3 +1,3 @@
1
1
  module RailsCoreExtensions
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_core_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Noack
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-26 00:00:00.000000000 Z
12
+ date: 2019-06-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord