Create ContextBase - a base class for all Context objects where we can put methods shared by all contexts.
Move remotes.getScope to ContextBase.prototype.getScope as it belongs there more naturally and will make it easier to access scope in hooks that can access the ctx object only.
Create
ContextBase
- a base class for all Context objects where we can put methods shared by all contexts.Move
remotes.getScope
toContextBase.prototype.getScope
as it belongs there more naturally and will make it easier to access scope in hooks that can access thectx
object only.Connect to strongloop-internal/scrum-loopback#729
@raymondfeng @ritch please review