Reputation: 654
Im using REST adapter by ember-data and it works fine. But now I want to use local storage for user settings storing.
Please, explain me, what is the right way?
I'm using ember-cli.
Upvotes: 0
Views: 666
Reputation: 3663
All you need to do is create a file in the adapters folder, with the same name of your model
//app/adapters/settings.js
import LSAdapter from "your_adapter"
export default LSAdapter.extend();
For local storage you can use Local Forage Adapter
Upvotes: 1