Commit 08a37ab8 by Cuong Tran

Merge pull request #194 from babybeasimple/skip-concerns

Skip "models/concerns" (since rails 4.0)
parents d8476735 6ff1587e
...@@ -354,7 +354,7 @@ module AnnotateModels ...@@ -354,7 +354,7 @@ module AnnotateModels
models = if options[:ignore_model_sub_dir] models = if options[:ignore_model_sub_dir]
Dir["*.rb"] Dir["*.rb"]
else else
Dir["**/*.rb"] Dir["**/*.rb"].reject{ |f| f["concerns/"] }
end end
end end
rescue SystemCallError rescue SystemCallError
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment