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.34.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.33.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.32.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.31.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.30.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.29.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.28.1 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.28.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.27.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.26.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.25.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.24.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.23.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.22.1 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.22.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.21.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.20.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.19.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.18.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.17.1 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb