1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/generators/erb.rb
Xavier Noria 69ab3eb57e applies new string literal convention in railties/lib
The current code base is not uniform. After some discussion,
we have chosen to go with double quotes by default.
2016-08-06 19:15:47 +02:00

25 lines
433 B
Ruby

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