activesorting 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/lib/active_sorting/model.rb +5 -4
- data/lib/active_sorting/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 643af3294f6f2bf5df3160c798121a4d171faffd
|
4
|
+
data.tar.gz: ea399cdc49501929b4ee0b16893ca830d69355aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af691cce0f3c649d9040cbfae395af5c3c020992679393182fd2b9bb16bdac572d46c28b2c7fcbc7307d0eacdc9b37469a671ba6852eef99662a2c15092b76d6
|
7
|
+
data.tar.gz: 9c74a9416809a061bae119b0305b00f1afd0a234d6bf97820a70bbc314dc8b5f8f311301a316f600307d076b636692f2009f9704cb6ef237b16bdef2c57fc48a
|
data/lib/active_sorting/model.rb
CHANGED
@@ -34,10 +34,11 @@ module ActiveSorting
|
|
34
34
|
|
35
35
|
# Check provided options
|
36
36
|
def active_sorting_check_options
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
37
|
+
# TODO: columns_hash breaks when database has no tables
|
38
|
+
# field_type = columns_hash[active_sorting_field.to_s].type
|
39
|
+
# unless field_type == :integer
|
40
|
+
# raise ArgumentError, "Sortable field should be of type Integer, #{field_type} given"
|
41
|
+
# end
|
41
42
|
unless active_sorting_step.is_a?(Fixnum)
|
42
43
|
raise ArgumentError, 'Sortable step should be of type Fixnum'
|
43
44
|
end
|