Skip to content

Commit e296d00

Browse files
authored
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.
1 parent 8e9a1bc commit e296d00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/annotate

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exit if options_result[:exit]
2626
options = Annotate.setup_options(
2727
is_rake: ENV['is_rake'] && !ENV['is_rake'].empty?
2828
)
29-
Annotate.eager_load(options) if Annotate.include_models?
29+
Annotate.eager_load(options) if Annotate::Helpers.include_models?
3030

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

0 commit comments

Comments
 (0)