~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/railties/lib/rails_generator/generators/components/model/templates/fixtures.yml

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
2
 
 
3
 
<% unless attributes.empty? -%>
4
 
one:
5
 
<% for attribute in attributes -%>
6
 
  <%= attribute.name %>: <%= attribute.default %>
7
 
<% end -%>
8
 
 
9
 
two:
10
 
<% for attribute in attributes -%>
11
 
  <%= attribute.name %>: <%= attribute.default %>
12
 
<% end -%>
13
 
<% else -%>
14
 
# one:
15
 
#   column: value
16
 
#
17
 
# two:
18
 
#   column: value
19
 
<% end -%>