Sha256: 4aa70d3a6c3ff03c1acc24972e7c788f8c582602126bc47119210be53ddd334f

Contents?: true

Size: 575 Bytes

Versions: 13

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

module <%= camelized_app_name %>
  module Actions
<%= module_controller_declaration %>
<%= module_controller_offset %>class <%= camelized_action_name %> < <%= camelized_app_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

13 entries across 13 versions & 2 rubygems

Version Path
hanami-cli-2.2.1 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.2.0 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.2.0.rc1 lib/hanami/cli/generators/app/action/action.erb
hanami-cli_bulma-0.0.2 lib/hanami/cli_bulma/generators/app/action/action.erb
hanami-cli_bulma-0.0.1 lib/hanami/cli_bulma/generators/app/action/action.erb
hanami-cli-2.2.0.beta2 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.2.0.beta1 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.1.1 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.1.0 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.1.0.rc3 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.1.0.rc2 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.1.0.rc1 lib/hanami/cli/generators/app/action/action.erb
hanami-cli-2.1.0.beta2 lib/hanami/cli/generators/app/action/action.erb