Inherit errors from StandardError instead of Exception.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Pool < ApplicationRecord
|
||||
class RevertError < Exception; end
|
||||
class RevertError < StandardError; end
|
||||
POOL_ORDER_LIMIT = 1000
|
||||
|
||||
array_attribute :post_ids, parse: /\d+/, cast: :to_i
|
||||
|
||||
Reference in New Issue
Block a user