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