Class: Lipstick::StaticErrors
- Inherits:
-
Object
- Object
- Lipstick::StaticErrors
- Defined in:
- lib/lipstick/errors/static_errors.rb
Class Method Summary collapse
Class Method Details
.write_public_error_files(path = 'public') ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/lipstick/errors/static_errors.rb', line 5 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 |