debian-mirror-gitlab/debian/gems-compat/railties-5.1.7/lib/rails/generators/erb.rb
2019-08-02 22:44:51 +05:30

25 lines
460 B
Ruby

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, file_format = format)
[name, file_format, handler].compact.join(".")
end
end
end
end