def validate_presence_of(field_name, type)
      type || raise(::ArgumentError, I18n.t('errors.invalid.type_required', field_name: field_name))
    end
def validate_presence_of(field_name, type)
      type || raise(::ArgumentError, I18n.t('errors.invalid.type_required', field_name: field_name))
    end
Validate presence of a type for given field name
 @param type [String, Symbol, nil]
 @return [String, Symbol] type
 @raise [ArgumentError] when type is nil