Method: MessageBus::Implementation#user_id_lookup

Defined in:
lib/message_bus.rb

#user_id_lookup {|env| ... } ⇒ void

This method returns an undefined value.

Yields:

  • (env)

    a routine to determine the user ID for a subscriber (authenticate)

Yield Parameters:

  • env (optional, Rack::Request::Env)

    the subscriber request environment

Yield Returns:

  • (optional, String, Integer)

    the user ID for the subscriber



207
208
209
210
# File 'lib/message_bus.rb', line 207

def user_id_lookup(&blk)
  configure(user_id_lookup: blk) if blk
  @config[:user_id_lookup]
end