1
0
mirror of https://github.com/flarum/core.git synced 2025-10-09 05:56:25 +02:00

Simplify model registration

This commit is contained in:
Toby Zerner
2015-05-05 17:05:02 +09:30
parent 220c1ac2d1
commit 1eef01da05
2 changed files with 6 additions and 10 deletions

View File

@@ -55,10 +55,6 @@ export default class Store {
return data ? Object.keys(data).map(id => data[id]) : [];
}
model(type, Model) {
this.models[type] = Model;
}
createRecord(type, data) {
data = data || {};
data.type = data.type || type;