Class: Analects::Generators::Base
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Analects::Generators::Base
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/analects.rb
Direct Known Subclasses
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_root ⇒ Object
14 15 16 |
# File 'lib/generators/analects.rb', line 14 def self.source_root @_analects_source_root ||= File.(File.join(File.dirname(__FILE__), 'analects', generator_name, 'templates')) end |