Class: SunspotRails::Generators::Base

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

Class Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/sunspot_rails.rb', line 4

def self.source_root
  @_sunspot_rails_source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'sunspot_rails', generator_name, 'templates'))
end