Sha256: 9dbb25f0b70330b55805c2df19bd1af57cacc3c9e1e987eec4a611f3e24c2b17
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 Bytes
Contents
<% id = 0 [ [:article, :test, 1], [:article, :welcome, 2], [:page, :about, 1], [:page, :projects, 2] ].each do |commentable_type, commentable_name, commentable_id| [ [:author, :john_doe, 1], [:author, :jane_doe, 2], [:user, :anonymous, 1], [:user, :registered, 2] ].each do |commenter_type, commenter_name, commenter_id| %> <%= commentable_type %>_<%= commentable_name %>_<%= commenter_type %>_<%= commenter_name %>: id: <%= id += 1 %> commentable_id: <%= commentable_id %> commentable_type: <%= commentable_type.to_s.camelize %> commenter_id: <%= commenter_id %> commenter_type: <%= commenter_type.to_s.camelize %> <% end end %>
Version data entries
3 entries across 3 versions & 1 rubygems