Skip to content

Commit

Permalink
Fix bin/annotate NoMethodError (#745)
Browse files Browse the repository at this point in the history
Helper methods were moved into Annotate::Helpers but instances in bin/annotate had not been updated. Because of this, bin/annotate would throw NoMethodError.
  • Loading branch information
drwl authored Feb 1, 2020
1 parent 8e9a1bc commit e296d00
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/annotate
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exit if options_result[:exit]
options = Annotate.setup_options(
is_rake: ENV['is_rake'] && !ENV['is_rake'].empty?
)
Annotate.eager_load(options) if Annotate.include_models?
Annotate.eager_load(options) if Annotate::Helpers.include_models?

AnnotateModels.send(options_result[:target_action], options) if Annotate.include_models?
AnnotateRoutes.send(options_result[:target_action], options) if Annotate.include_routes?
AnnotateModels.send(options_result[:target_action], options) if Annotate::Helpers.include_models?
AnnotateRoutes.send(options_result[:target_action], options) if Annotate::Helpers.include_routes?

0 comments on commit e296d00

Please sign in to comment.