Skip to content

Commit

Permalink
Merge pull request #269 from fancyremarker/fix-265
Browse files Browse the repository at this point in the history
Set model_dir to ["app/models"] if not set (fixes #265)
  • Loading branch information
ctran committed Jul 14, 2015
2 parents 513303a + a355dad commit 2bea946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/annotate_models.rake
Expand Up @@ -20,7 +20,7 @@ task :annotate_models => :environment do
options[:show_foreign_keys] = Annotate.true?(ENV['show_foreign_keys'])
options[:show_indexes] = Annotate.true?(ENV['show_indexes'])
options[:simple_indexes] = Annotate.true?(ENV['simple_indexes'])
options[:model_dir] = ENV['model_dir'] ? ENV['model_dir'].split(',') : []
options[:model_dir] = ENV['model_dir'] ? ENV['model_dir'].split(',') : ['app/models']
options[:include_version] = Annotate.true?(ENV['include_version'])
options[:require] = ENV['require'] ? ENV['require'].split(',') : []
options[:exclude_tests] = Annotate.true?(ENV['exclude_tests'])
Expand Down

0 comments on commit 2bea946

Please sign in to comment.