2010-06-20 22:01:11 +02:00
|
|
|
require 'active_model'
|
|
|
|
require "active_model/callbacks"
|
|
|
|
require "active_model/conversion"
|
|
|
|
require "active_model/errors"
|
|
|
|
require "active_model/naming"
|
|
|
|
require "active_model/serialization"
|
|
|
|
require "active_model/translation"
|
|
|
|
require "active_model/validator"
|
|
|
|
require "active_model/validations"
|
2011-02-28 16:00:41 +01:00
|
|
|
require "active_model/dirty"
|
2010-07-02 03:39:42 +02:00
|
|
|
|
2011-01-17 02:45:41 +01:00
|
|
|
require 'active_support/core_ext'
|
|
|
|
require 'active_support/json'
|
|
|
|
|
2010-06-20 22:01:11 +02:00
|
|
|
require 'mime/types'
|
|
|
|
require "enumerator"
|
|
|
|
require "time"
|
|
|
|
require 'digest/md5'
|
|
|
|
|
|
|
|
require 'bigdecimal' # used in typecast
|
|
|
|
require 'bigdecimal/util' # used in typecast
|
|
|
|
|
2011-01-17 02:45:41 +01:00
|
|
|
require 'couchrest'
|
|
|
|
|
2010-06-20 22:01:11 +02:00
|
|
|
require 'couchrest/model'
|
|
|
|
require 'couchrest/model/errors'
|
|
|
|
require "couchrest/model/persistence"
|
|
|
|
require "couchrest/model/typecast"
|
2011-03-03 08:28:57 +01:00
|
|
|
require "couchrest/model/casted_by"
|
|
|
|
require "couchrest/model/dirty"
|
2010-06-20 22:01:11 +02:00
|
|
|
require "couchrest/model/property"
|
2010-10-22 15:39:12 +02:00
|
|
|
require "couchrest/model/property_protection"
|
2010-06-20 22:01:11 +02:00
|
|
|
require "couchrest/model/properties"
|
2011-02-28 16:00:41 +01:00
|
|
|
require "couchrest/model/casted_array"
|
|
|
|
require "couchrest/model/casted_hash"
|
|
|
|
require "couchrest/model/casted_model"
|
2010-06-20 22:01:11 +02:00
|
|
|
require "couchrest/model/validations"
|
|
|
|
require "couchrest/model/callbacks"
|
|
|
|
require "couchrest/model/document_queries"
|
|
|
|
require "couchrest/model/views"
|
|
|
|
require "couchrest/model/design_doc"
|
|
|
|
require "couchrest/model/extended_attachments"
|
|
|
|
require "couchrest/model/class_proxy"
|
2011-02-09 21:21:03 +01:00
|
|
|
require "couchrest/model/proxyable"
|
2010-06-20 22:01:11 +02:00
|
|
|
require "couchrest/model/collection"
|
|
|
|
require "couchrest/model/associations"
|
2010-09-17 23:00:55 +02:00
|
|
|
require "couchrest/model/configuration"
|
2011-04-29 21:40:36 +02:00
|
|
|
require "couchrest/model/connection"
|
2011-02-06 04:32:23 +01:00
|
|
|
require "couchrest/model/designs"
|
|
|
|
require "couchrest/model/designs/view"
|
2010-06-20 22:01:11 +02:00
|
|
|
|
|
|
|
# Monkey patches applied to couchrest
|
2011-04-13 15:42:28 +02:00
|
|
|
require "couchrest/model/support/couchrest_design"
|
2011-04-20 10:47:36 +02:00
|
|
|
|
2011-04-01 19:45:13 +02:00
|
|
|
# Core Extensions
|
|
|
|
require "couchrest/model/core_extensions/hash"
|
|
|
|
require "couchrest/model/core_extensions/time_parsing"
|
2010-06-20 22:01:11 +02:00
|
|
|
|
|
|
|
# Base libraries
|
|
|
|
require "couchrest/model/casted_model"
|
|
|
|
require "couchrest/model/base"
|
|
|
|
# Add rails support *after* everything has loaded
|
|
|
|
|
2011-04-29 21:40:36 +02:00
|
|
|
if defined?(Rails)
|
|
|
|
require "couchrest/railtie"
|
|
|
|
end
|