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
Remove public declaration of caller_locations
  • Loading branch information
jkowens committed Oct 6, 2021
commit 619b696225f83a3a6f9e4a7df052915d76e21962
4 changes: 0 additions & 4 deletions lib/sinatra/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1558,10 +1558,6 @@ def caller_files
cleaned_caller(1).flatten
end

# In Ruby 2.x+ a built-in implementation is provided for caller_locations,
# which is used to tag templates
public :caller_locations

private

# Starts the server by running the Rack Handler.
Expand Down