All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rails5.model.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
=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}}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy