1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Add api_only option to Generators

This commit is contained in:
Santiago Pastorino 2015-04-17 20:33:43 -03:00
parent 7b47e4250d
commit 101df203eb

View file

@ -74,7 +74,7 @@ module Rails
end
class Generators #:nodoc:
attr_accessor :aliases, :options, :templates, :fallbacks, :colorize_logging
attr_accessor :aliases, :options, :templates, :fallbacks, :colorize_logging, :api_only
attr_reader :hidden_namespaces
def initialize
@ -83,6 +83,7 @@ module Rails
@fallbacks = {}
@templates = []
@colorize_logging = true
@api_only = false
@hidden_namespaces = []
end