Sha256: e8eead858d17a9167dbbd1ee61fdcf4885a5d1505d9e263e9bf9b53f3e68f15a

Contents?: true

Size: 551 Bytes

Versions: 31

Compression:

Stored size: 551 Bytes

Contents

# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
<% unless fields.empty? -%>
<% %w(first second).each do |name| %>
<%= name %>:
<% fields.each do |attribute| -%>
  <%- if attribute.password_digest? -%>
  password_digest: <%%= BCrypt::Password.create('secret') %>
  <%- else -%>
  <%= yaml_key_value(attribute.column_name, attribute.default) %>
  <%- end -%>
  <%- if attribute.polymorphic? -%>
  <%= yaml_key_value("#{attribute.name}_type", attribute.human_name) %>
  <%- end -%>
<% end -%>
<% end %>
<% end %>

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
hippo-fw-0.9.9 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.8 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.7 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.6 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.5 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.4 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.3 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.2 templates/spec/fixtures/namespace/model.yml
hippo-fw-0.9.1 templates/spec/fixtures/namespace/model.yml
lanes-0.8.3 templates/spec/fixtures/namespace/model.yml
lanes-0.8.2 templates/spec/fixtures/namespace/model.yml
lanes-0.8.1 templates/specs/fixtures/namespace/model.yml
lanes-0.8.0 templates/specs/fixtures/namespace/model.yml
lanes-0.7.0 templates/spec/fixtures/namespace/model.yml
lanes-0.6.1 templates/spec/fixtures/namespace/model.yml
lanes-0.6.0 templates/spec/fixtures/namespace/model.yml
lanes-0.5.6 templates/spec/fixtures/namespace/model.yml
lanes-0.5.5 templates/spec/fixtures/namespace/model.yml
lanes-0.5.0 templates/spec/fixtures/namespace/model.yml
lanes-0.4.0 templates/spec/fixtures/namespace/model.yml