Sha256: eca511bf9f574595d05162fb332267f39d59b69e21253368b64e80eb1b54a762

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 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
<%= module_controller_offset %>  def handle(*, response)
<%= module_controller_offset %>    response.body = self.class.name
<%= module_controller_offset %>  end
<%= module_controller_offset %>end
<%= module_controller_end %>
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hanami-cli-2.1.0.beta1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.3 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.2 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.0 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.0.rc1 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.0.beta4 lib/hanami/cli/generators/app/action/slice_action.erb
hanami-cli-2.0.0.beta3 lib/hanami/cli/generators/app/action/slice_action.erb