base.rb 398 B

1234567891011121314151617181920
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class FormUpdater::StoreValue::Base
  3. def can_handle_field?(field:, value:)
  4. false
  5. end
  6. def omit_field?(field:, value:)
  7. false
  8. end
  9. def store_value(field:, value:)
  10. raise OmitFieldError if omit_field?(field:, value:)
  11. map_value(field:, value:)
  12. end
  13. class OmitFieldError < StandardError; end
  14. end