Skip to content

Commit

Permalink
fix: Remove dependency on ActiveSupport core extensions from Grape in…
Browse files Browse the repository at this point in the history
…strumentation (#706)
  • Loading branch information
muripic authored Oct 23, 2023
1 parent 6e7f8da commit c5f5c58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def path(endpoint)
version = endpoint.routes.first.options[:version] || ''
prefix = endpoint.routes.first.options[:prefix]&.to_s || ''
parts = [prefix, version] + namespace.split('/') + endpoint.options[:path]
parts.reject { |p| p.blank? || p.eql?('/') }.join('/').prepend('/')
parts.reject { |p| p.nil? || p.empty? || p.eql?('/') }.join('/').prepend('/')
end

def formatter_type(formatter)
Expand Down

0 comments on commit c5f5c58

Please sign in to comment.