Sha256: 467b091953fec03f01d4eb60ab8270dc59871dc458bd98af0298b022b06590c3

Contents?: true

Size: 382 Bytes

Versions: 4

Compression:

Stored size: 382 Bytes

Contents

module Radius
  module Generators
    class ErrorPagesGenerator < ::Rails::Generators::Base
      source_root File.expand_path("../templates", __FILE__)
      desc "Copy the error pages to public"
      def create_error_pages
        %w{ 401.html 404.html 422.html 500.html }.each do |file|
          template file, File.join('public', file)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radius-rails-3.1.4 lib/rails/generators/radius/error_pages_generator.rb
radius-rails-0.0.6 lib/rails/generators/radius/error_pages_generator.rb
radius-rails-0.0.5 lib/rails/generators/radius/error_pages_generator.rb
radius-rails-0.0.2 lib/rails/generators/radius/error_pages_generator.rb