Sha256: 09dd977ff0422db9ac1d2cab5102e9c113d196866d129cbc32c74c826bef5f0b

Contents?: true

Size: 156 Bytes

Versions: 1

Compression:

Stored size: 156 Bytes

Contents

class <%= class_name %> < ActiveRecord::Base
<% attributes.select(&:reference?).each do |attribute| -%>
  belongs_to :<%= attribute.name %>
<% end -%>  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hardbap-coulda-0.4.0 generators/coulda_model/templates/model.rb