Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this.restful in resource class gets bypassed by broadway default empty object #40

Open
dvdvck opened this issue Jul 2, 2013 · 0 comments

Comments

@dvdvck
Copy link

dvdvck commented Jul 2, 2013

When restful is used as a plugin in flatiron application, if each resource class has his own restful config object, it gets superseded by the default object defined in broadway.

Here in restful.js L135

    Object.keys(app.resources).forEach(function (resource) {
      var _options = options || app.resources[resource].restful || {};
      //

and in broadway module at broadway/app.js L135

App.prototype.use = function (plugin, options, callback) {
  options = options || {};

Certainly, the _optionsobject always has the content of options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant