Class: KisoThemes::Generators::AnalyticsDetailPagesGenerator
- Inherits:
-
PageGenerator
- Object
- Rails::Generators::NamedBase
- PageGenerator
- KisoThemes::Generators::AnalyticsDetailPagesGenerator
- Defined in:
- lib/generators/kiso_themes/analytics_detail_pages_generator.rb
Instance Method Summary collapse
Methods inherited from PageGenerator
#copy_view, #create_controller, view_name
Instance Method Details
#set_layout ⇒ Object
10 11 12 13 |
# File 'lib/generators/kiso_themes/analytics_detail_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 |