Class: Tableficate::TableGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Tableficate::TableGenerator
- Defined in:
- lib/generators/tableficate/table/table_generator.rb
Constant Summary collapse
- TABLES_PATH =
'app/tables'
Instance Method Summary collapse
Instance Method Details
#create_table ⇒ Object
11 12 13 14 15 |
# File 'lib/generators/tableficate/table/table_generator.rb', line 11 def create_table empty_directory(TABLES_PATH) template('table.rb', "#{TABLES_PATH}/#{file_name.underscore}.rb") end |