Sha256: 59d8f233e6c725cf1f42a3821bc0d24c59cb2a924b5fe83ff578355bc68c0307

Contents?: true

Size: 250 Bytes

Versions: 20

Compression:

Stored size: 250 Bytes

Contents

class <%= class_name %> < ActiveRecord::Base
<% for model in belongs_tos -%>
  belongs_to :<%= model %>
<% end -%>
<% for model in has_ones -%>
  has_one :<%= model %>
<% end -%>
<% for model in has_manies -%>
  has_many :<%= model %>
<% end -%>
end

Version data entries

20 entries across 17 versions & 5 rubygems

Version Path
dima-restfulx-1.2.0 rails_generators/rx_scaffold/templates/model.rb.erb
dima-restfulx-1.2.1 rails_generators/rx_scaffold/templates/model.rb.erb
dima-ruboss4ruby-1.0.5 rails_generators/ruboss_scaffold/templates/model.rb.erb
dima-ruboss4ruby-1.1.0 rails_generators/ruboss_scaffold/templates/model.rb.erb
dima-ruboss4ruby-1.1.1 rails_generators/ruboss_scaffold/templates/model.rb.erb
dima-ruboss4ruby-1.1.2 rails_generators/ruboss_scaffold/templates/model.rb.erb
restfulx-1.2.0 rails_generators/rx_scaffold/templates/model.rb.erb
restfulx-1.2.1 rails_generators/rx_scaffold/templates/model.rb.erb
ruboss4ruby-1.0.1 merb_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.0.2 merb_generators/templates/ruboss_scaffold/model.rb.erb
ruboss4ruby-1.0.1 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.0.2 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss_on_ruby-1.0.1 merb_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.1.1 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss_on_ruby-1.0.1 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.0.5 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.1.0 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.0.4 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.0.3 rails_generators/ruboss_scaffold/templates/model.rb.erb
ruboss4ruby-1.1.2 rails_generators/ruboss_scaffold/templates/model.rb.erb