Skip to content

Commit

Permalink
fix(rel): check before end the cond
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolab committed Apr 14, 2021
1 parent 1b7a687 commit 9e91c82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/orm/schema/inject_for_final.cr
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ module DBX::ORM::SchemaInjectForFinal
has_many: {{dec[:has_many]}}
}
{% end %}
{{"end".id}} # end: cond_start
{% if i > 0 %}{{"end".id}}{% end %} # end: cond_start

raise DBX::Error.new %(Model not found for relation path: "#{path}") unless rel_model

Expand Down

0 comments on commit 9e91c82

Please sign in to comment.