Class: ContentBlocks::SnippetGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ContentBlocks::SnippetGenerator
- Extended by:
- ActiveRecord::Generators::Migration
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/content_blocks/snippet_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
9 10 11 |
# File 'lib/generators/content_blocks/snippet_generator.rb', line 9 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#copy_migration_template ⇒ Object
13 14 15 |
# File 'lib/generators/content_blocks/snippet_generator.rb', line 13 def copy_migration_template migration_template 'migration.rb', 'db/migrate/create_content_blocks_snippets' end |