Skip to content

Commit

Permalink
Fix bug in AutoVM template
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe committed Feb 14, 2019
1 parent 75b6291 commit c29712e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
## [Master](https://github.com/appwise-labs/AppwiseCore)

* DB: add a merge policy property, and set it to `mergeByPropertyStoreTrump` by default.
* AutoViewModel: fix bug that broke auto `vm` property generation.

## [0.11.1](https://github.com/appwise-labs/AppwiseCore/releases/tag/0.11.1)

Expand Down
2 changes: 1 addition & 1 deletion Sourcery/AutoViewModel.stencil
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import AppwiseCore
{% endfilter %}{% endmacro %}
{% macro viewModelFor var %}{% filter removeNewlines:"all" %}
{% if var.type %}
{% for vmType in types.based.ViewModel where vmType.name == "ClubViewModel" %}
{% for vmType in types.based.ViewModel %}
{% set associatedType %}{% call associatedTypeFor vmType %}{% endset %}
{% if associatedType == var.type.name %}
{{ vmType.name }}
Expand Down

0 comments on commit c29712e

Please sign in to comment.