mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply syntax_tree formatting to lib/*
This commit is contained in:
@@ -13,10 +13,6 @@ class TimezoneValidator < ActiveModel::EachValidator
|
||||
|
||||
def validate_each(record, attribute, value)
|
||||
return if value.blank? || TimezoneValidator.valid?(value)
|
||||
record.errors.add(
|
||||
attribute,
|
||||
:timezone,
|
||||
message: TimezoneValidator.error_message(value)
|
||||
)
|
||||
record.errors.add(attribute, :timezone, message: TimezoneValidator.error_message(value))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user