Sha256: 769e64846bfb4371cb0c74181e2c9f542348ae414aedf52f7a047103793d58cc

Contents?: true

Size: 306 Bytes

Versions: 22

Compression:

Stored size: 306 Bytes

Contents

# frozen_string_literal: true

module Lipstick
  class StaticErrors
    def self.write_public_error_files(path = 'public')
      [404, 422, 500].each do |error|
        File.write(
          "#{path}/#{error}.html",
          StaticErrorsController.render(error.to_s)
        )
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
aaf-lipstick-3.0.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-2.1.0 lib/lipstick/errors/static_errors.rb