Sha256: 8f10bd79b281f581916f4a4d4c71edb57365264815b17f34c4f1ca07f5383b94

Contents?: true

Size: 226 Bytes

Versions: 28

Compression:

Stored size: 226 Bytes

Contents

class <%= class_name %> < ActiveRecord::Base
  fields do
<% for attribute in attributes -%>
    <%= attribute.name %> :<%= attribute.type %>
<% end -%>
<% unless options[:skip_timestamps] %>
    timestamps
<% end -%>
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
hobofields-1.1.0 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.0.3 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.1.0.pre4 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.1.0.pre3 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.1.0.pre2 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.1.0.pre0 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.0.2 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.0.1 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-1.0.0 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.106 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.105 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.104 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.103 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.102 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.101 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.100 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.9.0 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.10 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.9 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.8 rails_generators/hobofield_model/templates/model.rb.erb