Sha256: b3f81ab84696b67005bf248c7a22a4024af0090b888c41ea28cd0770076e96a5

Contents?: true

Size: 266 Bytes

Versions: 33

Compression:

Stored size: 266 Bytes

Contents

class <%= class_name %> < PushType::Structure

  # Model the content by adding custom fields to the structure.
<% if attributes.each do |att| -%>
  <%= attribute_as_field(att) %>
<% end.empty? -%>
  # field :body, :text, validates: { presence: true }
<% end -%>

end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
push_type_core-0.12.1 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.12.0 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.12.0.beta.1 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.11.2 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.11.1 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.11.0.beta.2 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.11.0.beta.1 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.4 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.3 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.2 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.1 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.0 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.0.beta.5 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.10.0.beta.3 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.9.5 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.9.3 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.9.2 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.9.1 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.9.0 lib/generators/push_type/structure/templates/structure.rb
push_type_core-0.9.0.beta.4 lib/generators/push_type/structure/templates/structure.rb