Sha256: 5e37c99bb738ac019a792d39c1f55e8d72adffd8608a075673602cb28476cfe1

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

<%= class_definition %>
  <% filters.each do |filter| %>
    <%= filter -%>
  <% end %>

  <% actions.fetch(:public, []).each do |action_def| %>
    <%= action_def.render %>
  <% end %>

  <% if actions.fetch(:private, []).any? %>
    private

    <% actions.fetch(:private, []).each do |action_def| %>
      <%= action_def.render %>
    <% end %>
  <% end %>
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webamm_to_rails-7.0.1 lib/webamm_to_rails/sources/controllers/template.erb
webamm_to_rails-7.0.0 lib/webamm_to_rails/sources/controllers/template.erb