UNPKG

rfc-process

Version:

The default blueprint for ember-cli addons.

24 lines (17 loc) 458 B
import Model, { attr, hasMany, belongsTo } from '@ember-data/model'; export default class RfcModel extends Model { @attr content; @attr html; @attr('date') startDate; @attr('date') releaseDate; @attr releaseVersions; @attr proposalPr; @attr trackingLink; @hasMany('team') teams; @belongsTo('stage') stage; get title() { const matcher = this.content.match(/^# (.*)\n/) ?? []; const [, text] = matcher; return text; } }