@kaspernj/api-maker 1.0.124 → 1.0.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/base-model.cjs +4 -0
package/package.json
CHANGED
package/src/base-model.cjs
CHANGED
|
@@ -152,6 +152,10 @@ module.exports = class BaseModel {
|
|
|
152
152
|
}
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
static all() {
|
|
156
|
+
return this.ransack()
|
|
157
|
+
}
|
|
158
|
+
|
|
155
159
|
async create(attributes, options) {
|
|
156
160
|
if (attributes) this.assignAttributes(attributes)
|
|
157
161
|
const paramKey = this.modelClassData().paramKey
|