Module: Hibiki::Rails::Generators::ScaffoldModelInjection
- Included in:
- ScaffoldControllerGenerator
- Defined in:
- lib/generators/hibiki/rails/scaffold_model_injection.rb
Overview
What the scaffold writes INTO a model the app already owned.
Two things, and neither is optional. The delegate, because the row partial prints an association's label and the show page hands that partial a live record — without it the show page raises on arrival. And the after_commit ping, because it is what makes another tab, another user, the plain controller and a console write all reach an open list.
Printing them instead and hoping fails silently: everything works in one tab, which is exactly what makes the absence hard to notice.