strongloop / loopback

LoopBack makes it easy to build modern applications that require complex integrations.
http://loopback.io
Other
13.22k stars 1.2k forks source link

unscope method #1912

Closed Neil-UWA closed 8 years ago

Neil-UWA commented 8 years ago

Will loopback provide a unscope method, just like ruby on rails' unscope method.

currently, we can unscope by define Model.defaultScope = function(){}, and restore it when necessary. But doing this is dangerous.

0candy commented 8 years ago

We don't have plans to add an unscope method ATM. Would you like to submit a patch?

Neil-UWA commented 8 years ago

@0candy I will look into it when I have time.

pthieu commented 8 years ago

@Neil-UWA: This might take a while for us to get to. To speed up the process, you can do one of two things:

  1. If you still require this, open a new issue using the New issue button and fill in the template provided to you
  2. Open a PR adding this functionality yourself and we will review and merge.

Will close this issue now as it's been almost a year. Please use option #1 if you still require this.