Sha256: 6eaf7b5bdcfb4ad77fe0739fe50c24238ebe633fc6484e763004a512120a5604

Contents?: true

Size: 358 Bytes

Versions: 51

Compression:

Stored size: 358 Bytes

Contents

<% namespace do %>
  module Refines
    module Actions
      # Modifies and enhances default Hanami action response behavior.
      module Response
        refine Hanami::Action::Response do
          def with body:, status:
            @body = [body]
            @status = status
            self
          end
        end
      end
    end
  end
<% end %>

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
hanamismith-0.17.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.16.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.15.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.14.1 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.14.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.13.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.12.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.11.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.10.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.9.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.8.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb