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

Version Path
dima-restfulx-1.2.0 rails_generators/rx_scaffold/templates/fixtures.yml.erb
dima-restfulx-1.2.1 rails_generators/rx_scaffold/templates/fixtures.yml.erb
dima-ruboss4ruby-1.0.5 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
dima-ruboss4ruby-1.1.0 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
dima-ruboss4ruby-1.1.1 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
dima-ruboss4ruby-1.1.2 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
restfulx-1.2.0 rails_generators/rx_scaffold/templates/fixtures.yml.erb
restfulx-1.2.1 rails_generators/rx_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.1 merb_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.1 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.2 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.2 merb_generators/templates/ruboss_scaffold/fixtures.yml.erb
ruboss4ruby-1.1.0 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.3 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.1.1 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.1.2 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss_on_ruby-1.0.1 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.5 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss4ruby-1.0.4 rails_generators/ruboss_scaffold/templates/fixtures.yml.erb
ruboss_on_ruby-1.0.1 merb_generators/ruboss_scaffold/templates/fixtures.yml.erb