mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document Generators.api_only! method
This commit is contained in:
parent
03b576ee06
commit
37507d3b83
1 changed files with 4 additions and 0 deletions
|
@ -103,6 +103,10 @@ module Rails
|
|||
@fallbacks ||= {}
|
||||
end
|
||||
|
||||
# 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 views, helpers and assets
|
||||
# so generators such as scaffold won't create them.
|
||||
def self.api_only!
|
||||
hide_namespaces "assets", "helper", "css", "js"
|
||||
|
||||
|
|
Loading…
Reference in a new issue