mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
20 lines
380 B
Ruby
20 lines
380 B
Ruby
# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
|
|
|
|
class Setting::Validation::Base
|
|
attr_reader :record, :value
|
|
|
|
def initialize(record)
|
|
@record = record
|
|
@value = record.state_current.fetch('value', {})
|
|
end
|
|
|
|
private
|
|
|
|
def result_success
|
|
{ success: true }
|
|
end
|
|
|
|
def result_failed(msg)
|
|
{ success: false, message: msg }
|
|
end
|
|
end
|