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-4.10.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.9.2 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.9.1 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.9.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.8.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.7.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.6.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.5.1 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.4.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.3.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.2.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.1.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-4.0.1 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.2.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.1.0 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.0.6 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.0.5 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.0.4 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.0.2 lib/lipstick/errors/static_errors.rb
aaf-lipstick-3.0.1 lib/lipstick/errors/static_errors.rb