Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Kernel#caller_locations (2.x) #1491

Merged
merged 6 commits into from
Oct 6, 2021
Merged
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
The "z" was only needed to verify that tests pass
  • Loading branch information
julik authored and jkowens committed Oct 4, 2021
commit 9339e78c92cfef459125f8e93e2127f97a86922f
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ def caller_files
# In Ruby 2.x+ a built-in implementation is provided for caller_locations.
# If we do not have one, use the previous variant and provide a stub
# for the Location objects returned by the Kernel implementation
if private_instance_methods.include?(:zcaller_locations)
if private_instance_methods.include?(:caller_locations)
public :caller_locations
else
include CallerLocationsShim
Expand Down