Skip to content

Commit

Permalink
Merge pull request #1462 from jeremyevans/sessionid-to_s
Browse files Browse the repository at this point in the history
Make SessionId#to_s be an alias of #public_id
  • Loading branch information
tenderlove committed Jan 10, 2020
1 parent de902e4 commit 698a060
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/session/abstract/id.rb
Expand Up @@ -29,9 +29,9 @@ def private_id
end

alias :cookie_value :public_id
alias :to_s :public_id

def empty?; false; end
def to_s; raise; end
def inspect; public_id.inspect; end

private
Expand Down

0 comments on commit 698a060

Please sign in to comment.