Update model boilerplate

This commit is contained in:
Tobe O 2018-07-14 19:29:34 -04:00
parent c199e56e14
commit ac273baa06
2 changed files with 1 additions and 1 deletions

View file

@ -73,6 +73,7 @@ class ModelCommand extends Command {
modelLib.body.add(new Class((modelClazz) { modelLib.body.add(new Class((modelClazz) {
modelClazz modelClazz
..abstract = true
..name = needsSerialize ? '_${rc.pascalCase}' : rc.pascalCase ..name = needsSerialize ? '_${rc.pascalCase}' : rc.pascalCase
..extend = refer('Model'); ..extend = refer('Model');

View file

@ -57,7 +57,6 @@ class PluginCommand extends Command {
return ''' return '''
library ${pubspec.name}.src.config.plugins.${rc.snakeCase}; library ${pubspec.name}.src.config.plugins.${rc.snakeCase};
import 'dart:async';
import 'package:angel_framework/angel_framework.dart'; import 'package:angel_framework/angel_framework.dart';
AngelConfigurer ${rc.camelCase}() { AngelConfigurer ${rc.camelCase}() {