Sha256: 2eaf42233fa62bd61f483c7c0ec7a537506c1dcd349c29b8ec489237dd1b5d72

Contents?: true

Size: 182 Bytes

Versions: 46

Compression:

Stored size: 182 Bytes

Contents

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

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
activerecord-3.0.20 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.19 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.18 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.17 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.16 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.15 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.14 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.13 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.13.rc1 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.12 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.12.rc1 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.11 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.10 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.10.rc1 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.9 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.9.rc5 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.9.rc4 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.9.rc3 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.9.rc1 lib/rails/generators/active_record/model/templates/model.rb
activerecord-3.0.8 lib/rails/generators/active_record/model/templates/model.rb