Class: MmmenuGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MmmenuGenerator
- Defined in:
- lib/generators/mmmenu/mmmenu_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_helper ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/generators/mmmenu/mmmenu_generator.rb', line 5 def create_helper copy_file "helpers/mmmenu_helper.rb", "app/helpers/mmmenu_helper.rb" copy_file "views/mmmenu/_item.erb", "app/views/mmmenu/_item.erb" copy_file "views/mmmenu/_current_item.erb", "app/views/mmmenu/_current_item.erb" copy_file "views/mmmenu/_level_1.erb", "app/views/mmmenu/_level_1.erb" copy_file "views/mmmenu/_level_2.erb", "app/views/mmmenu/_level_2.erb" end |