Sha256: 281f57106c8c035e7d0ad8c50954fcde200d6c2c6dcdaa9664c1e2aa3228bafd

Contents?: true

Size: 491 Bytes

Versions: 71

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

71 entries across 68 versions & 6 rubygems

Version Path
railties-8.0.0 lib/rails/generators/erb.rb
railties-7.2.2 lib/rails/generators/erb.rb
railties-7.1.5 lib/rails/generators/erb.rb
railties-8.0.0.rc2 lib/rails/generators/erb.rb
railties-7.2.1.2 lib/rails/generators/erb.rb
railties-7.1.4.2 lib/rails/generators/erb.rb
railties-7.0.8.6 lib/rails/generators/erb.rb
railties-8.0.0.rc1 lib/rails/generators/erb.rb
railties-7.2.1.1 lib/rails/generators/erb.rb
railties-7.1.4.1 lib/rails/generators/erb.rb
railties-7.0.8.5 lib/rails/generators/erb.rb
railties-8.0.0.beta1 lib/rails/generators/erb.rb
omg-railties-8.0.0.alpha9 lib/rails/generators/erb.rb
omg-railties-8.0.0.alpha8 lib/rails/generators/erb.rb
omg-railties-8.0.0.alpha7 lib/rails/generators/erb.rb
omg-railties-8.0.0.alpha4 lib/rails/generators/erb.rb
omg-railties-8.0.0.alpha3 lib/rails/generators/erb.rb
railties-7.1.4 lib/rails/generators/erb.rb
railties-7.2.1 lib/rails/generators/erb.rb
railties-7.2.0 lib/rails/generators/erb.rb