Sha256: f1401dd39ebb22d2b3c8fd2c86dd79f84746928b7756af1079f8e7a529198f61
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
# frozen_string_literal: true require "rails/engine" require "open-uri" require "active_record" require "action_view" require "active_support/all" require "thread/local" require "monitor" require "observer" require "singleton" require "cable_ready/version" require "cable_ready/identifiable" require "cable_ready/operation_builder" require "cable_ready/config" require "cable_ready/broadcaster" require "cable_ready/sanity_checker" require "cable_ready/compoundable" require "cable_ready/channel" require "cable_ready/channels" require "cable_ready/cable_car" require "cable_ready/stream_identifier" module CableReady class Engine < Rails::Engine initializer "cable_ready.sanity_check" do SanityChecker.check! unless Rails.env.production? end initializer "renderer" do ActiveSupport.on_load(:action_controller) do ActionController::Renderers.add :operations do |operations, options| render json: operations.dispatch end end end end class << self def config CableReady::Config.instance end def configure yield config end def signed_stream_verifier @signed_stream_verifier ||= ActiveSupport::MessageVerifier.new(config.verifier_key, digest: "SHA256", serializer: JSON) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cable_ready-5.0.0.pre1 | lib/cable_ready.rb |
cable_ready-5.0.0.pre0 | lib/cable_ready.rb |