import { Ground } from 'meteor/ground:db'  // eslint-disable-line import/no-unresolved


export default ({ Meteor, Tracker }) => {
  if (! Meteor.isProduction) {
    if (! Tracker.pumpMongoToMobx) {
      console.warn('space:tracker-mobx-autorun package does not appear to be installed yet you want offline')  // eslint-disable-line no-console
    }
  }
  return {
    offlineEnabled: true,
    Ground,
  }
}

@@ -115,16 +115,23 @@
  Tracker
+, Mongo
  %7D) =%3E %7B
@@ -354,16 +354,435 @@
   %7D%0A  %7D%0A
+  Ground.Collection.prototype.attachSchema = Mongo.Collection.prototype.attachSchema%0A  if (! Ground.Collection.prototype.deny) %7B%0A    // Otherwise attachSchema doesn't work, but what functionality are we losing with attachSchema using deby?%0A    // https://github.com/aldeed/meteor-collection2-core/blob/1f4acc68a50a4b62793a327ed34832bd9254998a/lib/collection2.js#L547%0A    Ground.Collection.prototype.deny = () =%3E %7B%7D%0A  %7D%0A
   return

Allow attachSchema with GroundDB