Sha256: b0ae0c2d2dc614e9b20b03816b74e7da6d1e377ff8f71e0e2ec31f8958aae063

Contents?: true

Size: 226 Bytes

Versions: 4

Compression:

Stored size: 226 Bytes

Contents

begin

  require 'mongoid-crud/ext'
  Mongoid::Config.inject_singleton_method :register_model, add: :before do |klass|
    klass.__send__ :extend, Mongoid::CRUD::Extend
  end

rescue Exception
  STDOUT.puts("mongoid-dsl")
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-crud-1.2.3 lib/mongoid-crud/auto.rb
mongoid-crud-1.2.2 lib/mongoid-crud/auto.rb
mongoid-crud-1.2.1 lib/mongoid-crud/auto.rb
mongoid-crud-1.2.0 lib/mongoid-crud/auto.rb