Skip to content

Commit 698a060

Browse files
committed
Merge pull request #1462 from jeremyevans/sessionid-to_s
Make SessionId#to_s be an alias of #public_id
1 parent de902e4 commit 698a060

File tree

1 file changed

+1
-1
lines changed
  • lib/rack/session/abstract

1 file changed

+1
-1
lines changed

lib/rack/session/abstract/id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def private_id
2929
end
3030

3131
alias :cookie_value :public_id
32+
alias :to_s :public_id
3233

3334
def empty?; false; end
34-
def to_s; raise; end
3535
def inspect; public_id.inspect; end
3636

3737
private

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy