Flowdock
method

wrap

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: Metadata
wrap(message, expires_at: nil, expires_in: nil, purpose: nil) public

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 17
        def wrap(message, expires_at: nil, expires_in: nil, purpose: nil)
          if expires_at || expires_in || purpose
            JSON.encode new(encode(message), pick_expiry(expires_at, expires_in), purpose)
          else
            message
          end
        end
Register or log in to add new notes.