mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 11:22:19 +03:00
26d05aecd8
no issue - the Ember Data `Model` class has an `errors` property by default that is set to a `DS.Errors` instance but the Theme model was overriding that with an `errors` attr - it hasn't been an issue so far but causes problems in Ember/Ember Data 3.28.x because that tries to use the `DS.Errors` interface on the overridden attr property which then throws errors because the `errors` attr doesn't have the right methods
12 lines
253 B
JavaScript
12 lines
253 B
JavaScript
import ApplicationSerializer from './application';
|
|
import classic from 'ember-classic-decorator';
|
|
|
|
@classic
|
|
export default class Theme extends ApplicationSerializer {
|
|
primaryKey = 'name';
|
|
|
|
attrs = {
|
|
gscanErrors: {key: 'errors'}
|
|
};
|
|
}
|