1
0
Fork 0
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:
Santiago Pastorino 2015-05-14 18:17:20 -03:00
parent 03b576ee06
commit 37507d3b83

View file

@ -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"