From 6ff1587eb80474007bd568dc4bbd6ff80b1a60a5 Mon Sep 17 00:00:00 2001 From: babybeasimple Date: Thu, 12 Jun 2014 16:29:06 +0400 Subject: [PATCH] Skip "models/concerns" (since rails 4.0) --- lib/annotate/annotate_models.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/annotate/annotate_models.rb b/lib/annotate/annotate_models.rb index 3c5857021..b0cfa98b8 100644 --- a/lib/annotate/annotate_models.rb +++ b/lib/annotate/annotate_models.rb @@ -354,7 +354,7 @@ def get_model_files(options) models = if options[:ignore_model_sub_dir] Dir["*.rb"] else - Dir["**/*.rb"] + Dir["**/*.rb"].reject{ |f| f["concerns/"] } end end rescue SystemCallError