You can clone with
HTTPS or Subversion.
In 0.11.1, I can do this without mongo running:
class A; include MongoMapper::Document; end
class B < A; end
But in 0.12.0, for some reason it tries to connect to the database and I get an error:
Mongo::ConnectionFailure: Failed to connect to a master node at localhost:27017
It seems like defining classes shouldn't require a connection to the database.
btw, this only happens with the current master head, not the 0.12.0 version in rubygems.
This is pretty problematic for us as well, has it been addressed yet?
John, perhaps consider:
# @api public
@@connection ||= Mongo::MongoClient.new(:connect => !ENV['MONGODB_URI'].nil?)
@paulwalker consider that where?
Don't attempt to create a connection when inheriting classes if one d…
…oes not already exist. Closes #460.