Inherit errors from StandardError instead of Exception.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Note < ApplicationRecord
|
||||
class RevertError < Exception; end
|
||||
class RevertError < StandardError; end
|
||||
|
||||
attr_accessor :html_id
|
||||
belongs_to :post
|
||||
|
||||
Reference in New Issue
Block a user