Sha256: 4d7c95fb77ecef9ff9467c30b2dfef71d7e6a243f83a6ccf54b166e3e0cb01f8

Contents?: true

Size: 323 Bytes

Versions: 17

Compression:

Stored size: 323 Bytes

Contents

# Patch ActiveModelSerializers logger
require "active_model_serializers/logging"

module ActiveModelSerializers::Logging # rubocop:disable ClassAndModuleChildren
  include Sapience::Loggable

  private

  alias_method :tag_logger_old, :tag_logger

  def tag_logger(*tags, &block)
    logger.tagged(*tags, &block)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
sapience-0.2.4 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.2.3 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.2.2 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.2.1 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.2.0 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.13 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.12 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.11 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.10 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.9 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.8 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.7 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.6 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.5 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.4 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.3 lib/sapience/extensions/active_model_serializers/logging.rb
sapience-0.1.2 lib/sapience/extensions/active_model_serializers/logging.rb