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-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'
|
|
|
|
require 'custom_fields/types/category'
|
|
|
|
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
|