Class: KisoThemes::Generators::AnalyticsDashboardPagesGenerator

Inherits:
PageGenerator
  • Object
show all
Defined in:
lib/generators/kiso_themes/analytics_dashboard_pages_generator.rb

Instance Method Summary collapse

Methods inherited from PageGenerator

#copy_view, #create_controller, view_name

Instance Method Details

#set_layoutObject



10
11
12
13
# File 'lib/generators/kiso_themes/analytics_dashboard_pages_generator.rb', line 10

def set_layout
  controller_const_name = "#{name.camelize}Controller"
  inject_into_class File.join('app/controllers', class_path, "#{file_name}_controller.rb"), controller_const_name, "  layout '_app_nav'\n"
end