factory-girl-default
Advanced tools
Comparing version 1.0.5 to 1.0.6
12
index.js
@@ -145,3 +145,9 @@ /* global window, define */ | ||
factory.adapterFor = function (name) { | ||
return adapters[name] || defaultAdapter; | ||
if (adapters[name] !== undefined) { | ||
return adapters[name]; | ||
} else if (adapters.length > 0) { | ||
return adapters[0]; | ||
} else { | ||
return defaultAdapter; | ||
} | ||
}; | ||
@@ -340,2 +346,6 @@ | ||
var model = factories[name].model; | ||
console.log('==========='); | ||
console.log('factory name!'); | ||
console.log(factories[name]); | ||
attrs = merge(copy(factories[name].attributes), attrs); | ||
@@ -342,0 +352,0 @@ var names = keys(attrs); |
@@ -6,3 +6,3 @@ { | ||
"author": "Gonzalo Santome", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"keywords": [ | ||
@@ -9,0 +9,0 @@ "factory", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70260
1431