Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
PadrinoTasks.use(:mongoid) raises NameError in rake #1125
It's as if the environment isn't loaded (at least bundler/setup hasn't run).
I'm using mongoid 3.1, the current (as of today) revision of Padrino from the repo, and my Rakefile looks like:
require 'padrino-core/cli/rake' PadrinoTasks.use(:mongoid) PadrinoTasks.use(:database) PadrinoTasks.init
The error is:
I'm guessing the problem is that the tasks themselves are dependent on :environment and therefore Mongoid (nor the rest of the environment) is loaded.
Another question is how does it even get past the PadrinoTasks.load? call in