We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec05bf6 commit 8f7beeaCopy full SHA for 8f7beea
bin/annotate
@@ -128,6 +128,11 @@ OptionParser.new do |opts|
128
ENV['root_dir'] = dir
129
end
130
131
+ opts.on('--ignore-models',
132
+ "Don't annotate models") do |dir|
133
+ ENV['ignore_models'] = 'yes'
134
+ end
135
+
136
opts.on('--ignore-model-subdirects',
137
"Ignore subdirectories of the models directory") do |dir|
138
ENV['ignore_model_sub_dir'] = 'yes'
lib/annotate.rb
@@ -108,7 +108,7 @@ def self.include_routes?
108
109
110
def self.include_models?
111
- true
+ ENV['ignore_models'] !~ TRUE_RE
112
113
114
def self.loaded_tasks=(val)
0 commit comments