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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/rails_core_extensions/sortable.rb +1 -1
- data/lib/rails_core_extensions/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26556e1dd49cc422958adaf594ec55b6e23b2c22f2fb49c9adfad999a44c206d
|
4
|
+
data.tar.gz: 1f38b14cd718ff41fb7cbdb8f945cb1608cb9f27cc5ef5121c28fadc6f1e1d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b5a5a536d2bd3af02c5cb50fdd91827f5e0dbdc887c82e8cc8e08bc556a4602af639284c546a8dd0756d1422a6ad0d275e164ca51ed7432e38ae1aa22a50d15
|
7
|
+
data.tar.gz: 401b5f3c3f0a240738c1f069d26ca3bd73a3a4b9b92e09714290acf44ac8a2de4771400bbec423318440e55c8d03ba60d08ae8b3d4cc2e1b9cbe81c141d8246c
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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.
|
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-
|
12
|
+
date: 2019-06-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|