Skip to content

Commit 6ff1587

Browse files
committed
Skip "models/concerns" (since rails 4.0)
1 parent d847673 commit 6ff1587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/annotate/annotate_models.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ def get_model_files(options)
354354
models = if options[:ignore_model_sub_dir]
355355
Dir["*.rb"]
356356
else
357-
Dir["**/*.rb"]
357+
Dir["**/*.rb"].reject{ |f| f["concerns/"] }
358358
end
359359
end
360360
rescue SystemCallError

0 commit comments

Comments
 (0)