Add administrative webhooks (#18510)
* Add administrative webhooks * Fix error when webhook is deleted before delivery worker runs
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
class URLValidator < ActiveModel::EachValidator
|
||||
def validate_each(record, attribute, value)
|
||||
record.errors.add(attribute, I18n.t('applications.invalid_url')) unless compliant?(value)
|
||||
record.errors.add(attribute, :invalid) unless compliant?(value)
|
||||
end
|
||||
|
||||
private
|
||||
|
Reference in New Issue
Block a user