method

wrap_in_metadata_envelope

Importance_0
v8.1.1 - Show latest stable - 0 notes - Class: Metadata
wrap_in_metadata_envelope(hash, expires_at: nil, expires_in: nil, purpose: nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/messages/metadata.rb, line 64
        def wrap_in_metadata_envelope(hash, expires_at: nil, expires_in: nil, purpose: nil)
          expiry = pick_expiry(expires_at, expires_in)
          hash["exp"] = expiry if expiry
          hash["pur"] = purpose.to_s if purpose
          { "_rails" => hash }
        end
Register or log in to add new notes.