Sha256: 128aee27cf42af3cf99bb8583342d15dbd419c42484b98cda69094444b5d7e30
Contents?: true
Size: 684 Bytes
Versions: 15
Compression:
Stored size: 684 Bytes
Contents
require 'mongo_mapper' [ 'hacks/fixes', 'hacks/time_measuring', 'migration', 'mongo_mapper', 'view_helpers', 'db_config', 'micelaneous', 'plugins/default_scope', 'plugins/attributes_cache', 'plugins/micelaneous', ].each do |file| require "#{File.dirname __FILE__}/mongo_mapper_ext/#{file}" end module CommonPluginsAddition def self.included(model) model.plugin MongoMapper::Plugins::DefaultScope model.plugin MongoMapper::Plugins::AttributesCache model.plugin MongoMapper::Plugins::Micelaneous model.attr_protected :id, :_id, :_type, :created_at, :updated_at end end MongoMapper::Document.append_inclusions(CommonPluginsAddition)
Version data entries
15 entries across 15 versions & 2 rubygems