mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:14:12 +08:00
FEATURE: increasing name length in automation (#28945)
Updates from 30 to 100 the maximum length of the name of an automation. Adds tests for validating the maximum length of the name of an automation.
This commit is contained in:
@ -31,7 +31,7 @@ module DiscourseAutomation
|
||||
end
|
||||
|
||||
MIN_NAME_LENGTH = 5
|
||||
MAX_NAME_LENGTH = 30
|
||||
MAX_NAME_LENGTH = 100
|
||||
validates :name, length: { in: MIN_NAME_LENGTH..MAX_NAME_LENGTH }
|
||||
|
||||
def add_id_to_custom_field(target, custom_field_key)
|
||||
|
Reference in New Issue
Block a user