Sha256: dc51ed702cbbc7202c69587fbec1185ed0d9c0941e1321bd3aa1243f0377813f
Contents?: true
Size: 392 Bytes
Versions: 36
Compression:
Stored size: 392 Bytes
Contents
import Route from "@ember/routing/route"; import Message from "client-app/models/message"; import { preloadOrAjax } from "client-app/lib/utilities"; export default Route.extend({ model(params) { return preloadOrAjax("/show/" + params.id + ".json"); }, setupController(controller, model) { this._super(...arguments); controller.set("model", Message.create(model)); } });
Version data entries
36 entries across 36 versions & 1 rubygems