Skip to content

Commit

Permalink
Change verifier to conform Rails 7.1 API
Browse files Browse the repository at this point in the history
safe_url keyword argument is now passed.
  • Loading branch information
rafaelfranca committed Sep 1, 2023
1 parent b73e5f9 commit d371dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/global_id/verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
class GlobalID
class Verifier < ActiveSupport::MessageVerifier
private
def encode(data)
def encode(data, **)
::Base64.urlsafe_encode64(data)
end

def decode(data)
def decode(data, **)
::Base64.urlsafe_decode64(data)
end
end
Expand Down

0 comments on commit d371dd1

Please sign in to comment.