mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e40f515a75
Build failed with an error "invalid multibyte char (US-ASCII)" in these files. Apparently, some UTF-8 char disguised as whitespace causes this. Thanks @rafaelfranca
21 lines
365 B
Ruby
21 lines
365 B
Ruby
require 'rails/generators/named_base'
|
|
|
|
module Erb # :nodoc:
|
|
module Generators # :nodoc:
|
|
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
|