Sha256: 20f0770e509dab79c33ef1b24e4bce8978bc9f0ab1e41a9ab06c37895115c594
Contents?: true
Size: 450 Bytes
Versions: 2
Compression:
Stored size: 450 Bytes
Contents
module Header module Generators class PagesGenerator < Rails::Generators::Base desc 'Generate 403 404 500 and 502 error pages' source_root File.expand_path("../templates", __FILE__) def copy_error_pages copy_file "403.html", "public/403.html" copy_file "404.html", "public/404.html" copy_file "500.html", "public/500.html" copy_file "502.html", "public/502.html" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
header-0.0.9 | lib/generators/header/pages_generator.rb |
header-0.0.8 | lib/generators/header/pages_generator.rb |