biola/turnout

View on GitHub
lib/turnout/maintenance_page/html.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_relative './base'
module Turnout
  module MaintenancePage
    class HTML < Base
      def reason
        super.to_s.split("\n").map{|txt| "<p>#{txt}</p>" }.join("\n")
      end

      def self.media_types
        %w{
          text/html
          application/xhtml+xml
        }
      end

      def self.extension
        'html'
      end
    end
  end
end