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 end
class Generators #:nodoc: 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 attr_reader :hidden_namespaces
def initialize def initialize
@ -83,6 +83,7 @@ module Rails
@fallbacks = {} @fallbacks = {}
@templates = [] @templates = []
@colorize_logging = true @colorize_logging = true
@api_only = false
@hidden_namespaces = [] @hidden_namespaces = []
end end