Class: KisoThemes::Generators::BlogPostPagesGenerator
- Inherits:
-
PageGenerator
- Object
- Rails::Generators::NamedBase
- PageGenerator
- KisoThemes::Generators::BlogPostPagesGenerator
- Defined in:
- lib/generators/kiso_themes/blog_post_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/blog_post_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 '_base'\n" end |