date.rb 530 B

1234567891011121314151617181920
  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 Date < Import::Zendesk::ObjectAttribute::Base
  9. def init_callback(_object_attribte)
  10. @data_option.merge!(
  11. future: true,
  12. past: true,
  13. diff: 0,
  14. )
  15. end
  16. end
  17. end
  18. end
  19. end