Method: MessageBus::Implementation#is_admin_lookup

Defined in:
lib/message_bus.rb

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

This method returns an undefined value.

Yields:

  • (env)

    a routine to determine if a request comes from an admin user

Yield Parameters:

  • env (Rack::Request::Env)

    the subscriber request environment

Yield Returns:

  • (Boolean)

    whether or not the request is from an admin user

[View source]

225
226
227
228
# File 'lib/message_bus.rb', line 225

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