Class: RailsApiDocs::Generators::UpdateGenerator
- Inherits:
-
InitGenerator
- Object
- Rails::Generators::Base
- InitGenerator
- RailsApiDocs::Generators::UpdateGenerator
- Defined in:
- lib/generators/rails-api-docs/update/update_generator.rb
Overview
Alias for InitGenerator with a different namespace. Both commands run the same code; this one reads more naturally for re-runs:
rails g rails-api-docs:update # equivalent to :init
rails g rails-api-docs:update --api-only # all flags supported
The generator’s behavior is self-detecting (file exists → append-only merge; file missing → fresh scaffold), so the practical distinction is purely the name printed in ‘rails g –help`.