Sha256: cc86094d7c687397693a0eeadaf23a9962b8aa3b56b5234805af873c578ad78d

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %> < <%= parent_class_name.classify %>
<% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
  belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %>
<% end -%>
end
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord-4.0.0.beta1 lib/rails/generators/active_record/model/templates/model.rb