Sha256: ef6eb073579197936edfc3160006e61225344ed09c9604b875b2d93d5644e429
Contents?: true
Size: 1.02 KB
Versions: 20
Compression:
Stored size: 1.02 KB
Contents
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html <% unless attributes.empty? && belongs_tos.empty? -%> <%= class_name.underscore -%>_one: <% for attribute in attributes -%> <%= attribute.name %>: <%= attribute.default("#{class_name}1") %> <% end -%> <% for model in belongs_tos -%> <%= model %>: <%= model %>_one <% end -%> <%= class_name.underscore -%>_two: <% for attribute in attributes -%> <%= attribute.name %>: <%= attribute.default("#{class_name}2") %> <% end -%> <% for model in belongs_tos -%> <%= model %>: <%= model %>_two <% end -%> <%= class_name.underscore -%>_three: <% for attribute in attributes -%> <%= attribute.name %>: <%= attribute.default("#{class_name}3") %> <% end -%> <% for model in belongs_tos -%> <%= model %>: <%= model %>_three <% end -%> <%= class_name.underscore -%>_four: <% for attribute in attributes -%> <%= attribute.name %>: <%= attribute.default("#{class_name}4") %> <% end -%> <% for model in belongs_tos -%> <%= model %>: <%= model %>_four <% end -%> <% end -%>
Version data entries
20 entries across 17 versions & 5 rubygems