aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/generators/erb.rb
blob: 3e6371268f88a3f739200d398077250d656969d2 (plain) (tree)
1
2
3
4
5
                                     


                   
                                                      












                                                 


       
require 'rails/generators/named_base'

module Erb
  module Generators
    class Base < Rails::Generators::NamedBase #:nodoc:
      protected

      def format
        :html
      end

      def handler
        :erb
      end

      def filename_with_extensions(name)
        [name, format, handler].compact.join(".")
      end
    end
  end
end