Sha256: 90c64e525574697d16acb6956b25d6ff4bb369f21d6c39b527a43bc3c22008df
Contents?: true
Size: 518 Bytes
Versions: 4
Compression:
Stored size: 518 Bytes
Contents
require 'aldous/respondable/base' module Aldous module Respondable class Headable < Base def action(controller) HeadAction.new(controller, status) end def default_status :ok end private class HeadAction attr_reader :controller, :status def initialize(controller, status) @controller = controller @status = status end def execute controller.head status end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems