You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.
The current ac.models.get() takes the YUI module name as the argument. This means that I (as an app developer) need to know ahead of time which YUI module to use for a model.
The feature request is to augment ac.models.get() to take the model name (for example, foo for models/foo.server.js) and to use the correct model for the current context.
The text was updated successfully, but these errors were encountered:
As it turns out, the mojit resolution process already has this exact mapping. (It can be found at ac.command.instance.models.)
For backwards compatibility we should probably first look in Y.mojito.models[name] then fallback to Y.mojito.models[instance.models[name]] which implements this feature. (Plus good error checking of course.)
The current
ac.models.get()
takes the YUI module name as the argument. This means that I (as an app developer) need to know ahead of time which YUI module to use for a model.The feature request is to augment
ac.models.get()
to take the model name (for example,foo
formodels/foo.server.js
) and to use the correct model for the current context.The text was updated successfully, but these errors were encountered: