rails_generators/ruboss_scaffold/templates/model.as.erb in ruboss4ruby-1.0.5 vs rails_generators/ruboss_scaffold/templates/model.as.erb in ruboss4ruby-1.1.0

- old
+ new

@@ -1,8 +1,8 @@ package <%= base_package %>.models { <% if has_manies.length > 0 -%> - import org.ruboss.models.ModelsCollection; + import org.ruboss.collections.ModelsCollection; <% end -%> import org.ruboss.models.RubossModel; [Resource(name="<%= resource_controller_name %>")] [Bindable] @@ -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 %>;