factory-girl
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -205,3 +205,3 @@ /* global window, define */ | ||
} | ||
return this._build(name, attrs, wrapCallback(callback)); | ||
return builder._build(name, attrs, wrapCallback(callback)); | ||
}; | ||
@@ -208,0 +208,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"author": "Simon Wade", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"keywords": [ | ||
@@ -9,0 +9,0 @@ "factory", |
@@ -209,3 +209,17 @@ # factory-girl | ||
require('factory-girl-bookshelf')(); | ||
// use the ObjectAdapter (that simply returns raw objects) for the `post` model | ||
``` | ||
### `ObjectAdapter` | ||
You can use the included ObjectAdapter to work without model classes. This adapter simply returns | ||
the provided attribute objects. | ||
``` | ||
factory.setAdapter(new factory.ObjectAdapter()); | ||
``` | ||
### Using Different Adapters Per-model | ||
``` | ||
// use an ObjectAdapter for the `post` model only | ||
factory.setAdapter(new factory.ObjectAdapter(), 'post'); | ||
@@ -212,0 +226,0 @@ ``` |
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
48896
254