Sha256: 0123c3ef4e23dabf34899c5f8d236264b8ab6718c0c8d0df21f85f8f5fee2b7e

Contents?: true

Size: 433 Bytes

Versions: 128

Compression:

Stored size: 433 Bytes

Contents

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

Version data entries

128 entries across 123 versions & 11 rubygems

Version Path
railties-4.1.14.1 lib/rails/generators/erb.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/erb.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/erb.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/erb.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/erb.rb
railties-5.0.0.beta1 lib/rails/generators/erb.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.1.13/lib/rails/generators/erb.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/railties-4.2.4/lib/rails/generators/erb.rb
railties-4.1.14 lib/rails/generators/erb.rb
railties-4.2.5 lib/rails/generators/erb.rb
railties-4.2.5.rc2 lib/rails/generators/erb.rb
railties-4.1.14.rc2 lib/rails/generators/erb.rb
railties-4.2.5.rc1 lib/rails/generators/erb.rb
railties-4.1.14.rc1 lib/rails/generators/erb.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/generators/erb.rb
railties-4.2.4 lib/rails/generators/erb.rb
railties-4.1.13 lib/rails/generators/erb.rb
railties-4.2.4.rc1 lib/rails/generators/erb.rb
railties-4.1.13.rc1 lib/rails/generators/erb.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/railties-4.2.3/lib/rails/generators/erb.rb