Sha256: e0e97e20629d642af51d3e58c5f4ebd702255cf6a7abb62a8a67a1dea1f98e03

Contents?: true

Size: 580 Bytes

Versions: 5

Compression:

Stored size: 580 Bytes

Contents

# frozen_string_literal: true

module <%= camelized_slice_name %>
  module Actions
<%= module_controller_declaration %>
<%= module_controller_offset %>class <%= camelized_action_name %> < <%= camelized_slice_name %>::Action
<%- if bundled_views?  -%>
<%= module_controller_offset %>  def handle(request, response)
<%- else -%>
<%= module_controller_offset %>  def handle(request, response)
<%= module_controller_offset %>    response.body = self.class.name
<%- end -%>
<%= module_controller_offset %>  end
<%= module_controller_offset %>end
<%= module_controller_end %>
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-cli-2.1.0 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.1.0.rc3 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.1.0.rc2 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.1.0.rc1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.1.0.beta2 lib/hanami/cli/generators/app/action/slice_action.erb