Class: Sandra::Generators::Base

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/sandra.rb

Direct Known Subclasses

ModelGenerator

Class Method Summary collapse

Class Method Details

.source_rootObject



8
9
10
11
# File 'lib/generators/sandra.rb', line 8

def self.source_root
  @_sandra_source_root ||= 
  File.expand_path("../#{base_name}/#{generator_name}/templates", __FILE__)
end