Sha256: 9db75ae084ad85c99ebf7949c32630d96995d2d5e0069f5867e3c01b9de9caeb

Contents?: true

Size: 147 Bytes

Versions: 4

Compression:

Stored size: 147 Bytes

Contents

class <%= res_name.classify %> < ActiveRecord::Base
<% res_attrs.each_key do |name| -%>
  # validates :<%= name %>, presence: true
<% end -%>
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grapethor-0.2.3 lib/grapethor/templates/resource/app/models/%res_name%.rb.tt
grapethor-0.2.2 lib/grapethor/templates/resource/app/models/%res_name%.rb.tt
grapethor-0.2.1 lib/grapethor/templates/resource/app/models/%res_name%.rb.tt
grapethor-0.2.0 lib/grapethor/templates/resource/app/models/%res_name%.rb.tt