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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7581f100b1a9767cbf2c3d518b0c2b6610c63ff1
4
- data.tar.gz: 1a8d949fe9631719b65c4161d402c583c6930f92
3
+ metadata.gz: 643af3294f6f2bf5df3160c798121a4d171faffd
4
+ data.tar.gz: ea399cdc49501929b4ee0b16893ca830d69355aa
5
5
  SHA512:
6
- metadata.gz: b7fb853507a2ff0bfdfeab35dd7394d6ca81cc312350763b92f45938bf85f5d6fe4c517137516ccea34b493426be09b79b7a61c941301af96dfaaee5937c074b
7
- data.tar.gz: 23aeea21e2c9fcf789d1a6814f0568ec9ef2ceb1965ef3bbc05c9d99adf7f8b1e1ec8b1f94db58f070f3a18589ce442889085d9bbe083053f0b247f5387fde7b
6
+ metadata.gz: af691cce0f3c649d9040cbfae395af5c3c020992679393182fd2b9bb16bdac572d46c28b2c7fcbc7307d0eacdc9b37469a671ba6852eef99662a2c15092b76d6
7
+ data.tar.gz: 9c74a9416809a061bae119b0305b00f1afd0a234d6bf97820a70bbc314dc8b5f8f311301a316f600307d076b636692f2009f9704cb6ef237b16bdef2c57fc48a
@@ -34,10 +34,11 @@ module ActiveSorting
34
34
 
35
35
  # Check provided options
36
36
  def active_sorting_check_options
37
- field_type = columns_hash[active_sorting_field.to_s].type
38
- unless field_type == :integer
39
- raise ArgumentError, "Sortable field should be of type Integer, #{field_type} given"
40
- end
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
@@ -1,3 +1,3 @@
1
1
  module ActiveSorting
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activesorting
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
  - Omar Abdel-Wahab