forms-angular 0.12.0-beta.215 → 0.12.0-beta.217

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.
@@ -236,7 +236,7 @@ class FormsAngular {
236
236
  ;
237
237
  getResource(name) {
238
238
  return _.find(this.resources, function (resource) {
239
- return resource.resourceName === name;
239
+ return resource.resourceName === name || resource.options.resourceName === name;
240
240
  });
241
241
  }
242
242
  ;
@@ -61,6 +61,7 @@ declare module fngServer {
61
61
  onAccess?: (req, cb) => void,
62
62
  searchFunc?: SearchFunc;
63
63
  synonyms? : {name: string, filter?: any}[], // name must be lower case
64
+ resourceName?: string, // allows a resource to have diference modelName specified
64
65
  // when performing a search, two results from this resource with the same value for .text will be disambiguated by
65
66
  // appending the description of the record from disambiguation.resource whose id matches result[disambiguation.field]
66
67
  disambiguation?: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mark Chapman <support@forms-angular.org>",
4
4
  "description": "A form builder that sits on top of Angular.js, Twitter Bootstrap, jQuery UI, Angular-UI, Express and Mongoose. Opinionated or what?",
5
5
  "homepage": "http://forms-angular.org",
6
- "version": "0.12.0-beta.215",
6
+ "version": "0.12.0-beta.217",
7
7
  "engines": {
8
8
  "node": ">=8.x",
9
9
  "npm": ">=5.x"