(app, registry)
| 152 | } |
| 153 | |
| 154 | function registerApplicationClasses(app, registry) { |
| 155 | app.initializer({ |
| 156 | name: 'register-application-classes', |
| 157 | initialize: function (app) { |
| 158 | for (let key in registry) { |
| 159 | app.register(key, registry[key]); |
| 160 | } |
| 161 | }, |
| 162 | }); |
| 163 | } |
| 164 | |
| 165 | function registerTemplate(name, template) { |
| 166 | this.register('template:' + name, this.compile(template)); |
no test coverage detected