Skip to content

Commit

Permalink
Fix AnnotateRoutes.do_annotations and .remove_annotations so as to re…
Browse files Browse the repository at this point in the history
…turn message
  • Loading branch information
nard-tech committed Feb 9, 2024
1 parent d9f6713 commit 31b705d
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions lib/annotate/annotate_routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,22 @@

module AnnotateRoutes
class << self
# @param options [Hash]
# @return [String]
def do_annotations(options = {})
routes_file = File.join('config', 'routes.rb')
result = AnnotationProcessor.execute(options, routes_file)
puts result
AnnotationProcessor.execute(options, routes_file).tap do |result|
puts result
end
end

# @param options [Hash]
# @return [String]
def remove_annotations(options = {})
routes_file = File.join('config', 'routes.rb')
result = RemovalProcessor.execute(options, routes_file)
puts result
RemovalProcessor.execute(options, routes_file).tap do |result|
puts result
end
end
end
end

0 comments on commit 31b705d

Please sign in to comment.