Sean Cribbs wrote:
Chris,
We might be able to make a rake task that loads the environment with
no extensions installed. In fact, it should be as easy as something
like this:
task :minimal_environment do
Radiant::Initializer.run do |config|
config.extensions = []
end
end
Then we could make db:bootstrap and anything else that needs to
prevent extensions from loading depend on that instead of the default
:environment task.
Sean
I tried the idea above (added it to my extension -- not Radiant) and set
up my extension's tasks like:
task :migrate => :minimal_environment do
...
I got an error that the constant StylesNScripts wasn't defined (at least
that's what I remembered).
I probably just did something wrong here but I wanted to post the result
as an FYI.
-Chris
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant