emberjs / guides

This repository is DEPRECATED!
https://github.com/ember-learn/guides-source
Other
283 stars 873 forks source link

Make first paragraph of custom adapters more beginner friendly #2267

Closed jenweber closed 6 years ago

jenweber commented 6 years ago

The most common beginner use for a custom adapter is specifying namespace and host. Make that clear.

Also this paragraph could be restated in plainer language, like "If you create an adapter named application with ember generate adapter application, it will be used as the default adapter for the entire app. If a model in your application needs different configuration...."

If your backend has some consistent rules you can define an adapter:application. The adapter:application will get priority over the default Adapter, however it will still be superseded by model specific Adapters.