rails5.model.mustache Maven / Gradle / Ivy
=begin
{{> info}}
=end
{{#models}}{{#model}}
class {{classname}} < ApplicationRecord
{{#requiredVars}}
validates_presence_of :{{name}}
{{/requiredVars}}{{#vars}}{{#isListContainer}}
serialize :{{name}}, Array{{/isListContainer}}{{#isMapContainer}}
serialize :{{name}}, Hash{{/isMapContainer}}{{/vars}}
end{{/model}}{{/models}}