Unverified Commit e296d00a by Andrew W. Lee Committed by GitHub

Fix bin/annotate NoMethodError (#745)

Helper methods were moved into Annotate::Helpers but instances in bin/annotate had not been updated. Because of this, bin/annotate would throw NoMethodError.
parent 8e9a1bcc
......@@ -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?
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