textarea.rb 605 B

1234567891011121314151617181920212223242526
  1. # this require is required (hehe) because of Rails autoloading
  2. # which causes strange behavior not inheriting correctly
  3. # from Import::OTRS::DynamicField
  4. require_dependency 'import/zendesk/object_attribute/base'
  5. module Import
  6. class Zendesk
  7. module ObjectAttribute
  8. class Textarea < Import::Zendesk::ObjectAttribute::Base
  9. def init_callback(_object_attribte)
  10. @data_option.merge!(
  11. type: 'textarea',
  12. maxlength: 255,
  13. )
  14. end
  15. private
  16. def data_type(_attribute)
  17. 'input'
  18. end
  19. end
  20. end
  21. end
  22. end