Sha256: 64cff37175ff6115dc1de34b6f818943bda93d6e6f8fae9246863900e4f6e3a3
Contents?: true
Size: 940 Bytes
Versions: 1
Compression:
Stored size: 940 Bytes
Contents
class Linger::Railtie < ::Rails::Railtie config.linger = ActiveSupport::OrderedOptions.new initializer "linger.testing" do ActiveSupport.on_load(:active_support_test_case) do parallelize_setup { |worker| Linger.namespace = "test-#{worker}" } teardown { Linger.clear_all } end end initializer "linger.logger" do Linger::LogSubscriber.logger = config.linger.logger || Rails.logger end initializer "linger.configuration" do Linger::Connections.connector = config.linger.connector || ->(config) { Redis.new(config) } end initializer "linger.configurator" do Linger.configurator = Rails.application end initializer "linger.action_cable" do ActiveSupport.on_load(:action_cable) do StimulusReflex::Reflex.include Linger::Authentication end end rake_tasks do path = File.expand_path("..", __dir__) Dir.glob("#{path}/tasks/**/*.rake").each { |f| load f } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
linger-0.1.0 | lib/linger/railtie.rb |