2010-05-19 23:42:19 +00:00
|
|
|
$:.unshift File.expand_path(File.dirname(__FILE__))
|
|
|
|
|
2010-06-08 00:45:49 +00:00
|
|
|
require 'active_support'
|
2010-06-30 13:18:17 +00:00
|
|
|
require 'carrierwave/orm/mongoid'
|
2010-06-08 00:45:49 +00:00
|
|
|
|
2010-06-10 13:30:22 +00:00
|
|
|
require 'custom_fields/extensions/mongoid/document'
|
2010-06-08 00:45:49 +00:00
|
|
|
require 'custom_fields/extensions/mongoid/associations/proxy'
|
|
|
|
require 'custom_fields/extensions/mongoid/associations/has_many_related'
|
2010-05-19 23:42:19 +00:00
|
|
|
require 'custom_fields/extensions/mongoid/associations/embeds_many'
|
2010-06-08 00:45:49 +00:00
|
|
|
require 'custom_fields/types/default'
|
2010-06-22 13:04:40 +00:00
|
|
|
require 'custom_fields/types/string'
|
|
|
|
require 'custom_fields/types/text'
|
2010-06-08 00:45:49 +00:00
|
|
|
require 'custom_fields/types/category'
|
2010-06-22 13:04:40 +00:00
|
|
|
require 'custom_fields/types/boolean'
|
2010-06-30 00:03:34 +00:00
|
|
|
require 'custom_fields/types/date'
|
2010-06-30 13:18:17 +00:00
|
|
|
require 'custom_fields/types/file'
|
2010-06-08 00:45:49 +00:00
|
|
|
require 'custom_fields/proxy_class_enabler'
|
|
|
|
require 'custom_fields/field'
|
2010-05-19 23:42:19 +00:00
|
|
|
require 'custom_fields/custom_fields_for'
|
|
|
|
|
|
|
|
module Mongoid
|
|
|
|
module CustomFields
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
included do
|
|
|
|
include ::CustomFields::CustomFieldsFor
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|