Class: Analects::Generators::Base

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

Direct Known Subclasses

CedictGenerator

Class Method Summary collapse

Class Method Details

.next_migration_number(dirname) ⇒ Object



10
11
12
# File 'lib/generators/analects.rb', line 10

def self.next_migration_number(dirname)
  ActiveRecord::Generators::Base.next_migration_number(dirname)
end

.source_rootObject



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

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