aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/generators/erb.rb
blob: d5e326d6ee0e11645bc953b53520fc9fcdf89f3e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                     
 

                             
                                                      
             
 


                   
 


                  
 


                   
 


                                                                


       
require "rails/generators/named_base"

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

        def formats
          [format]
        end

        def format
          :html
        end

        def handler
          :erb
        end

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