Sha256: b0134c93200d2982429d241e2ab562f32617c98c3d5994352b678584bde0e767

Contents?: true

Size: 389 Bytes

Versions: 14

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module DjiMqttConnect
  class Railtie < Rails::Railtie
    # Allow ActiveJob to serialize DjiMqttConnect::Message objects
    config.active_job.custom_serializers << Railties::MessageSerializer

    # Replace default logger with Rails logger
    initializer "dji_mqtt_connect.configure_logger" do
      DjiMqttConnect.logger = Rails.logger
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dji_mqtt_connect-0.1.8 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.7 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.6 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.5 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.4.1 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.4 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.3 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.2 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.1.4 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.1.3 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.1.2 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.1.1 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.1 lib/dji_mqtt_connect/railtie.rb
dji_mqtt_connect-0.1.0 lib/dji_mqtt_connect/railtie.rb