Skip to content

Commit

Permalink
Change error classes parents (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-lazarov authored and brendon committed Nov 5, 2017
1 parent 1be46d6 commit 0fba218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/acts_as_list/active_record/acts/no_update.rb
Expand Up @@ -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
Expand Down

0 comments on commit 0fba218

Please sign in to comment.