Sha256: 6eaf7b5bdcfb4ad77fe0739fe50c24238ebe633fc6484e763004a512120a5604

Contents?: true

Size: 358 Bytes

Versions: 48

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

48 entries across 48 versions & 1 rubygems

Version Path
hanamismith-1.1.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-1.0.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.50.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.49.1 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.49.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.48.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.47.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.46.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.45.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.44.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.43.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.42.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.41.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.40.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.39.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.38.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
hanamismith-0.37.0 lib/hanamismith/templates/%project_name%/lib/%project_path%/refines/actions/response.rb.erb
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