Sha256: 7def8e600bb404e82643154f468c0facf8bbe469149ab5acb342a29f282542d7
Contents?: true
Size: 488 Bytes
Versions: 13
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true module Karafka module Web # Proxy App that selects either Pro or regular app to handle the requests class App class << self # @param env [Hash] Rack env # @param block [Proc] Rack block def call(env, &block) engine.call(env, &block) end # @return [Class] regular or pro Web engine def engine ::Karafka.pro? ? Pro::Ui::App : Ui::App end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems