Class: DataMapper::Generators::Base

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

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.source_rootObject



12
13
14
15
# File 'lib/generators/data_mapper.rb', line 12

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