Sha256: b4c0421cb85ee0a60af312833ff958e1222a8f46537c5690a9eff1ef3ccab490

Contents?: true

Size: 244 Bytes

Versions: 14

Compression:

Stored size: 244 Bytes

Contents

<% module_namespacing do -%>
class <%= class_name %>
  include Elasticsearch::Persistence::Model

<% attributes.each do |attribute| -%>
  <%= "attribute :#{attribute.name},".ljust(@padding+12) %> <%= attribute.type %>
<% end -%>
end
<% end -%>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
elasticsearch-persistence-queryable-0.1.9 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-queryable-0.1.8 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-5.1.0 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-5.0.2 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-2.0.1 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-5.0.1 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-2.0.0 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-5.0.0 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-0.1.9 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-0.1.8 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-0.1.7 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-0.1.6 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-0.1.5 lib/rails/generators/elasticsearch/model/templates/model.rb.tt
elasticsearch-persistence-0.1.4 lib/rails/generators/elasticsearch/model/templates/model.rb.tt