Skip to content

Commit

Permalink
Set model_dir to ["app/models"] if not set (fixes #265)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Macreery committed Jul 14, 2015
1 parent 513303a commit a355dad
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 a355dad

Please sign in to comment.