Class: DataMapper::Generators::Base

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

Overview

:nodoc:

Instance Attribute Summary

Attributes included from Rails3Generators::MigrationHelper

#migration_number

Class Method Summary collapse

Methods included from Rails3Generators::MigrationHelper

included, #run_migration

Class Method Details

.source_rootObject

include Rails::Generators::Migration



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

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