engine/vendor/plugins/custom_fields/lib/custom_fields.rb

23 lines
683 B
Ruby
Raw Normal View History

$:.unshift File.expand_path(File.dirname(__FILE__))
require 'active_support'
require 'custom_fields/extensions/mongoid/document'
require 'custom_fields/extensions/mongoid/associations/proxy'
require 'custom_fields/extensions/mongoid/associations/has_many_related'
require 'custom_fields/extensions/mongoid/associations/embeds_many'
require 'custom_fields/types/default'
require 'custom_fields/types/category'
require 'custom_fields/proxy_class_enabler'
require 'custom_fields/field'
require 'custom_fields/custom_fields_for'
module Mongoid
module CustomFields
extend ActiveSupport::Concern
included do
include ::CustomFields::CustomFieldsFor
end
end
end