Class: Plok::SidebarGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/plok/sidebar/sidebar_generator.rb

Instance Method Summary collapse

Instance Method Details

#installObject



7
8
9
10
11
12
13
# File 'lib/generators/plok/sidebar/sidebar_generator.rb', line 7

def install
  copy_sidebar_files('wrapper', 'menu_items', 'menu_item', 'offcanvas_menu')
  add_scss_imports_to_application
  add_js_imports_to_application
  inject_wrapper_block_into_application_layout
  say("\nAll done! Remember to reboot your server so the new assets can load.\n\n")
end