Sha256: 592df01689cfac14e436383e3f4064f411e62e0f8ad8e7f2076290eeb41ea487

Contents?: true

Size: 234 Bytes

Versions: 6

Compression:

Stored size: 234 Bytes

Contents

class <%= model.to_s -%> < ActiveRecord::Base <% #FIXME:  make this restrict access to attributes that shouldn't be accessible %>
<% model.associations.each do |k, v| -%>
  <%= model.rails_association_string(k, v)  -%>
<% end -%>
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mattknox-goaloc-0.3.0 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.4.0 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.4.1 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.4.2 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.4.4 lib/goaloc/generators/rails/model.rb.erb
mattknox-goaloc-0.4.5 lib/goaloc/generators/rails/model.rb.erb