Sha256: 752b1ed064da5755c33df93a5371b1fbee864539c2bf9c36f726cc1b6ff8e9d5

Contents?: true

Size: 365 Bytes

Versions: 32

Compression:

Stored size: 365 Bytes

Contents

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

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
railties-4.0.13 lib/rails/generators/erb.rb
railties-4.0.13.rc1 lib/rails/generators/erb.rb
railties-4.0.11.1 lib/rails/generators/erb.rb
railties-4.0.12 lib/rails/generators/erb.rb
railties-4.0.11 lib/rails/generators/erb.rb
railties-4.0.10 lib/rails/generators/erb.rb
railties-4.0.10.rc2 lib/rails/generators/erb.rb
railties-4.0.10.rc1 lib/rails/generators/erb.rb
railties-4.0.9 lib/rails/generators/erb.rb
railties-4.0.8 lib/rails/generators/erb.rb
railties-4.0.7 lib/rails/generators/erb.rb
railties-4.0.6 lib/rails/generators/erb.rb
railties-4.0.6.rc3 lib/rails/generators/erb.rb
railties-4.0.6.rc2 lib/rails/generators/erb.rb
railties-4.0.6.rc1 lib/rails/generators/erb.rb
railties-4.0.5 lib/rails/generators/erb.rb
railties-4.0.4 lib/rails/generators/erb.rb
railties-4.0.4.rc1 lib/rails/generators/erb.rb
railties-4.1.0.beta2 lib/rails/generators/erb.rb
railties-4.0.3 lib/rails/generators/erb.rb