Skip to content

Instantly share code, notes, and snippets.

View gratzc's full-sized avatar

Curt Gratz gratzc

View GitHub Profile
@gratzc
gratzc / gist:5999404
Last active December 19, 2015 18:29
MXUnit Decorator cfscript syntax
/**
* @mxunit:decorators mxunit.framework.decorators.TransactionRollbackDecorator
**/
component extends="coldbox.system.testing.BaseModelTest" model="model.SomeModel" {
void function setup() {
super.setup();
}
@gratzc
gratzc / gist:1975777
Created March 5, 2012 01:17
Add modules external location to CB
/**
* Fired when the module is registered and activated.
*/
function onLoad(){
//get the current external locations
var modulesExternalLocation = controller.getSetting('modulesExternalLocation');
//if the contentbox-modules isn't already part of the setting, add it and register/activate all modules
if (!arrayFind(modulesExternalLocation,"/contentbox-modules")) {
//get the module service
var ms = controller.getModuleService();