Class: Playmo::Recipes::LayoutRecipe
- Inherits:
-
Playmo::Recipe
- Object
- Rails::Generators::Base
- Playmo::Recipe
- Playmo::Recipes::LayoutRecipe
- Defined in:
- lib/playmo/recipes/layout_recipe.rb
Instance Attribute Summary
Attributes inherited from Playmo::Recipe
#application_name, #question_instance, #silents
Instance Method Summary collapse
Methods inherited from Playmo::Recipe
#cook!, #question, #retrieve, #silently, #store
Instance Method Details
#setup ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/playmo/recipes/layout_recipe.rb', line 6 def setup silently do Event.events.listen(:after_install) do |event_data| remove_file 'app/views/layouts/application.html.erb' generate :layout, "application #{retrieve(:markup)}" end end end |