Class: Analects::Generators::CedictGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::Base
- Base
- Analects::Generators::CedictGenerator
show all
- Defined in:
- lib/generators/analects/cedict/cedict_generator.rb
Instance Method Summary
collapse
Methods inherited from Base
next_migration_number, source_root
Instance Method Details
#analects_cedict_model ⇒ Object
17
18
19
|
# File 'lib/generators/analects/cedict/cedict_generator.rb', line 17
def analects_cedict_model
template "model.rb", "app/models/cedict.rb"
end
|
#analects_create_cedict_table ⇒ Object
9
10
11
|
# File 'lib/generators/analects/cedict/cedict_generator.rb', line 9
def analects_create_cedict_table
migration_template "create_cedict_table.rb", "db/migrate/create_cedict_table.rb"
end
|
#analects_populate_cedict_table ⇒ Object
13
14
15
|
# File 'lib/generators/analects/cedict/cedict_generator.rb', line 13
def analects_populate_cedict_table
migration_template "populate_cedict_table.rb", "db/migrate/populate_cedict_table.rb"
end
|