diff --git a/lib/acts_as_list/active_record/acts/no_update.rb b/lib/acts_as_list/active_record/acts/no_update.rb index 78072403..5ca7f397 100644 --- a/lib/acts_as_list/active_record/acts/no_update.rb +++ b/lib/acts_as_list/active_record/acts/no_update.rb @@ -7,13 +7,13 @@ def self.included(base) base.extend ClassMethods end - class ArrayTypeError < SyntaxError + class ArrayTypeError < ArgumentError def initialize super("The first argument must be an array") end end - class DisparityClassesError < NotImplementedError + class DisparityClassesError < ArgumentError def initialize super("The first argument should contain ActiveRecord or ApplicationRecord classes") end