Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (14 sloc) 0.406 kb
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
Jump to Line
Something went wrong with that request. Please try again.