Class: Yael::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Yael::Generators::InstallGenerator
- Defined in:
- lib/generators/yael/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_dispatch_map ⇒ Object
11 12 13 |
# File 'lib/generators/yael/install/install_generator.rb', line 11 def copy_dispatch_map template "events.rb", "config/events.rb" end |
#copy_migration ⇒ Object
15 16 17 |
# File 'lib/generators/yael/install/install_generator.rb', line 15 def copy_migration template "create_events.rb", "db/migrate/#{DateTime.current.strftime '%Y%m%d%H%M%S'}_create_yael_events.rb" end |