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-0.8.3 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.1 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.2 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.7 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.6 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.5 rails_generators/hobofield_model/templates/model.rb.erb
hobofields-0.8.4 rails_generators/hobofield_model/templates/model.rb.erb