Class: Vitrage::Generators::InstallGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- Vitrage::Generators::InstallGenerator
- Defined in:
- lib/generators/vitrage/install_generator.rb
Instance Method Summary collapse
- #add_routes ⇒ Object
- #copy_vitrage_piece_model_file ⇒ Object
- #create_vitrage_piece_migration ⇒ Object
Instance Method Details
#add_routes ⇒ Object
21 22 23 |
# File 'lib/generators/vitrage/install_generator.rb', line 21 def add_routes route "Vitrage.routes(self)" end |
#copy_vitrage_piece_model_file ⇒ Object
12 13 14 |
# File 'lib/generators/vitrage/install_generator.rb', line 12 def copy_vitrage_piece_model_file copy_file "vitrage_slot.rb", "app/models/vitrage_owners_pieces_slot.rb" end |
#create_vitrage_piece_migration ⇒ Object
16 17 18 19 |
# File 'lib/generators/vitrage/install_generator.rb', line 16 def create_vitrage_piece_migration migration_template "migrations/create_vitrage_slots.rb", "db/migrate/create_vitrage_owners_pieces_slots.rb" end |