Hi,
I’ve abstract Model
Filter = DS.Model.extend(Ember.Validations.Mixin,
type: DS.attr("string"),
name: DS.attr("string")
description: DS.attr('string')
and an inherited model:
status = Filter.extend(
pattern: DS.attr("string")
)
My server json for a status (filter is abstract):
{"filters":
{"id": "oZnGUb8MKgLX",
"type": "status",
"name": "Error status",
"description": "",
"pattern": "201-210"}}
When i try to load a status (http://localhost/filter/filter_id), i’ve a filter instance not a status instance.
I want to receive the good type of filter , if my filter is a status , i want load a status instance not a filter instance . If i implement a status route etc… it work , but i don’t want create mvc for all inherited resource of filter… What is the good way ?
Michael