method
api_only!
v5.0.0.1 -
Show latest stable
- Class:
Rails::Generators
api_only!()public
Configure generators for API only applications. It basically hides everything that is usually browser related, such as assets and session migration generators, and completely disable helpers and assets so generators such as scaffold won’t create them.