require 'dm-core'

begin
  require 'active_support/core_ext/date_time/conversions'
rescue LoadError
  require 'extlib/datetime'
end

module DataMapper
  class Property
    autoload :CommaSeparatedList, 'dm-types/comma_separated_list'
    autoload :Csv,                'dm-types/csv'
    autoload :BCryptHash,         'dm-types/bcrypt_hash'
    autoload :Enum,               'dm-types/enum'
    autoload :EpochTime,          'dm-types/epoch_time'
    autoload :FilePath,           'dm-types/file_path'
    autoload :Flag,               'dm-types/flag'
    autoload :IPAddress,          'dm-types/ip_address'
    autoload :Json,               'dm-types/json'
    autoload :Regexp,             'dm-types/regexp'
    autoload :ParanoidBoolean,    'dm-types/paranoid_boolean'
    autoload :ParanoidDateTime,   'dm-types/paranoid_datetime'
    autoload :Slug,               'dm-types/slug'
    autoload :UUID,               'dm-types/uuid'
    autoload :URI,                'dm-types/uri'
    autoload :Yaml,               'dm-types/yaml'
  end
end
