We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fc672e commit a8ff80dCopy full SHA for a8ff80d
1 file changed
lib/active_sorting/model.rb
@@ -55,8 +55,8 @@ def active_sorting_check_options
55
# unless field_type == :integer
56
# raise ArgumentError, "Sortable field should be of type Integer, #{field_type} where given"
57
# end
58
- unless active_sorting_step.is_a?(Fixnum)
59
- raise ArgumentError, "Sortable step should be of type Fixnum, #{active_sorting_step.class.name} where given"
+ unless active_sorting_step.is_a?(Integer)
+ raise ArgumentError, "Sortable step should be of type Integer, #{active_sorting_step.class.name} where given"
60
end
61
unless active_sorting_scope.respond_to?(:each)
62
raise ArgumentError, "Sortable step should be of type Enumerable, #{active_sorting_scope.class.name} where given"
0 commit comments