Skip to content

Commit a8ff80d

Browse files
committed
Update database Cleaner with rails 5 and replace Fixnum with Integer
1 parent 3fc672e commit a8ff80d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/active_sorting/model.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def active_sorting_check_options
5555
# unless field_type == :integer
5656
# raise ArgumentError, "Sortable field should be of type Integer, #{field_type} where given"
5757
# 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"
58+
unless active_sorting_step.is_a?(Integer)
59+
raise ArgumentError, "Sortable step should be of type Integer, #{active_sorting_step.class.name} where given"
6060
end
6161
unless active_sorting_scope.respond_to?(:each)
6262
raise ArgumentError, "Sortable step should be of type Enumerable, #{active_sorting_scope.class.name} where given"

0 commit comments

Comments
 (0)