Skip to content

Commit

Permalink
Fix to task file so that tasks don't croak in production environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsrohde committed Sep 7, 2017
1 parent 6475631 commit f152181
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/tasks/document_betydb.rake
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Define the "yard" task:
YARD::Rake::YardocTask.new do |t|
# Most options are set in the .yardopts file under the Rails root
# directory rather than here.

# Uncomment this to get a report of all undocumented methods:
# t.stats_options = ['--list-undoc']
# This test is needed because we don't load YARD in all environments:
if defined? YARD
# Define the "yard" task:
YARD::Rake::YardocTask.new do |t|
# Most options are set in the .yardopts file under the Rails root
# directory rather than here.

# Uncomment this to get a report of all undocumented methods:
# t.stats_options = ['--list-undoc']
end
end

# Make the doc:app task run yardoc instead of RDoc:
Expand Down

0 comments on commit f152181

Please sign in to comment.