Sha256: 1ede874ee5c8a47441c40121661c5ac3fb1d34c22ed506800e80b122bfb86418

Contents?: true

Size: 594 Bytes

Versions: 1

Compression:

Stored size: 594 Bytes

Contents

require "generators/kiso_themes/handler_support"

module KisoThemes
  module Generators
    class ErrorPagesGenerator < Rails::Generators::Base
      source_root File.expand_path('../templates/error_pages', __FILE__)

      namespace "kiso_themes:error_pages"
      desc "Installs the Ives error pages into the /public directory."

      def copy_stylesheet
        copy_file "403.html.erb", "public/403.html"
        copy_file "404.html.erb", "public/404.html"
        copy_file "422.html.erb", "public/422.html"
        copy_file "500.html.erb", "public/500.html"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kiso_themes-1.0.2 lib/generators/kiso_themes/error_pages_generator.rb