Sha256: d7edca22a7c53258509b8b7c82438207f4b8dd30c9d457372b4ca2a31f10ef94
Contents?: true
Size: 848 Bytes
Versions: 19
Compression:
Stored size: 848 Bytes
Contents
# :nocov: Gorynich.configure do |config| # config cache of gorynich config.cache = Rails.cache config.rack_env_handler = lambda do |env| host = env['SERVER_NAME'] tenant = Gorynich.instance.tenant_by_host(host) uri = Gorynich.instance.uri_by_host(host, tenant) [tenant, { host: host, uri: uri }] end # config cache namespace # config.namespace = 'gorynich' # config how long your cache will be alive in seconds # config.cache_expiration = 30 end # Add cable head # ActiveSupport.on_load(:action_cable_connection) do # include Gorynich::Head::ActionCable::Connection # end # # ActiveSupport.on_load(:action_cable_channel) do # include Gorynich::Head::ActionCable::Channel # end # Add active job head # ActiveSupport.on_load(:active_job) do # include Gorynich::Head::ActiveJob # end # :nocov:
Version data entries
19 entries across 19 versions & 1 rubygems