Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 332a359cbc
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (20 sloc) 0.433 kB
require 'rails/generators/named_base'
module Erb # :nodoc:
module Generators # :nodoc:
class Base < Rails::Generators::NamedBase #:nodoc:
protected
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
Jump to Line
Something went wrong with that request. Please try again.