rails_generators/ruboss_scaffold/templates/model.as.erb in dima-ruboss4ruby-1.1.0 vs rails_generators/ruboss_scaffold/templates/model.as.erb in dima-ruboss4ruby-1.1.1
- old
+ new
@@ -15,10 +15,10 @@
<% for attribute in attributes -%>
<% if attribute.type == :datetime || attribute.type == :time -%>
[DateTime]
<% end -%>
- public var <%= attribute.flex_name %>:<%= attribute.flex_type %>;
+ public var <%= attribute.flex_name %>:<%= attribute.flex_type %> = <%= attribute.flex_default %>;
<% end -%>
<% for model in belongs_tos -%>
[BelongsTo]
public var <%= model.camelcase(:lower) %>:<%= model.camelcase %>;