Sha256: c4824fd16439cafefa96b6862bea0099fc8ea4d4df50c92e7627bcf48bdb819c

Contents?: true

Size: 235 Bytes

Versions: 1

Compression:

Stored size: 235 Bytes

Contents

class <%= goal.cs %> < ActiveRecord::Base
<% goal.associations.each do |k, v| %>
  <%= ArModel.association_string(k,v) %>
<% end %>

<% goal.validations.each do |v| %>
  <%= "  validates_#{v[:val_type]} :#{v[:field]}" %>
<% end %>
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mattknox-goaloc-0.4.7 lib/goaloc/generators/rails/model.erb