Sha256: e36a5e1cb06626b103d7f3cc5bd7851c66adc179f11e18c14f35c7177966a46b

Contents?: true

Size: 406 Bytes

Versions: 3

Compression:

Stored size: 406 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

3 entries across 2 versions & 2 rubygems

Version Path
sc_core-0.0.7 test/dummy/lib/generators/haml/base.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/haml_rails-0.1.0/lib/generators/haml_rails/templates/base.rb
haml_rails-0.1.0 lib/generators/haml_rails/templates/base.rb