Skip to content

Commit 08a37ab

Browse files
committed
Merge pull request #194 from babybeasimple/skip-concerns
Skip "models/concerns" (since rails 4.0)
2 parents d847673 + 6ff1587 commit 08a37ab

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)