Sha256: ecaec6ef8c7d91321f445d2928c3379f2045eaa882e94633a488a91718e0e8cc

Contents?: true

Size: 408 Bytes

Versions: 11

Compression:

Stored size: 408 Bytes

Contents

require 'rails/generators/named_base'

module Haml
  module Generators
    class Base < ::Rails::Generators::NamedBase
      # Automatically sets the source root based on the class name.
      #
      def self.source_root
        @_haml_source_root ||= begin
          File.expand_path(File.join(File.dirname(__FILE__), generator_name, 'templates')) if generator_name
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
advanced_haml_scaffold_generator-3.0.0 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-2.3.1 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-2.2.1 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-2.2.0 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-2.1.0 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-2.0.0 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-1.0.5 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-1.0.3 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-1.0.2 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-1.0.1 lib/rails/generators/haml/base.rb
advanced_haml_scaffold_generator-1.0.0 lib/rails/generators/haml/base.rb