Skip to content

Commit ef56365

Browse files
committed
Allow Foobara's Model to collide with an app model named Model
1 parent ea8628a commit ef56365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/Model/Model.ts.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Model } from "<%= path_to_root %>base/Model"
1+
import { Model as FoobaraModel } from "<%= path_to_root %>base/Model"
22
<% dependency_roots.each do |dependency_root| %>
33
import <%= dependency_root.import_destructure %> from "<%= path_to_root %><%= dependency_root.import_path %>"
44
<% end %>
@@ -7,7 +7,7 @@ export interface <%= model_short_name %>AttributesType <%= attributes_type_ts_ty
77

88
export class <%= model_short_name %><
99
AttributesType extends <%= model_short_name %>AttributesType = <%= model_short_name %>AttributesType
10-
> extends Model<AttributesType> {
10+
> extends FoobaraModel<AttributesType> {
1111
static readonly modelName: string = "<%= model_short_name %>"
1212

1313
<% attribute_names.each do |attribute_name| %>

0 commit comments

Comments
 (0)