Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix AnnotateRoutes.do_annotations and .remove_annotations so as to re…
…turn message
  • Loading branch information
nard-tech committed Feb 9, 2024
commit 31b705de139ee9d7ca0bc663195d3e43e88b0833
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