Sha256: feec9d9de44309877db353d56e8f26487896497ec8105d617cbdc949dae60f5a
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
# Patch ActiveModelSerializers logger require "active_model_serializers" require "active_model_serializers/logging" module ActiveModelSerializers::Logging # rubocop:disable ClassAndModuleChildren def self.included(base) base.send(:include, Sapience::Loggable) end private alias_method :orig_tag_logger, :tag_logger def tag_logger(*tags, &block) logger.tagged(*tags, &block) end end ActiveModelSerializers.send(:include, Sapience::Loggable)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sapience-0.2.6 | lib/sapience/extensions/active_model_serializers/logging.rb |
sapience-0.2.5 | lib/sapience/extensions/active_model_serializers/logging.rb |