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

Version Path
crystal-ext-0.0.3 lib/mongo_mapper_ext.rb
crystal-ext-0.0.2 lib/mongo_mapper_ext.rb
crystal-ext-0.0.1 lib/mongo_mapper_ext.rb
rails-ext-0.3.29 lib/mongo_mapper_ext.rb
rails-ext-0.3.28 lib/mongo_mapper_ext.rb
rails-ext-0.3.27 lib/mongo_mapper_ext.rb
rails-ext-0.3.25 lib/mongo_mapper_ext.rb
rails-ext-0.3.24 lib/mongo_mapper_ext.rb
rails-ext-0.3.23 lib/mongo_mapper_ext.rb
rails-ext-0.3.22 lib/mongo_mapper_ext.rb
rails-ext-0.3.21 lib/mongo_mapper_ext.rb
rails-ext-0.3.20 lib/mongo_mapper_ext.rb
rails-ext-0.3.19 lib/mongo_mapper_ext.rb
rails-ext-0.3.18 lib/mongo_mapper_ext.rb
rails-ext-0.3.17 lib/mongo_mapper_ext.rb