Sha256: fbb6f23c6e0e85e092ec033dd16681315a2ab88791b7c19406c6932b868128c5

Contents?: true

Size: 406 Bytes

Versions: 93

Compression:

Stored size: 406 Bytes

Contents

module RailsOps::Mixins::LogSettings
  extend ActiveSupport::Concern

  included do
    class_attribute :_skip_logging
    self._skip_logging = false
  end

  module ClassMethods
    # Allows to skip logging for this operation via the
    # {RailsOps::LogSubscriber}.
    def skip_logging(skip = true)
      self._skip_logging = skip
    end

    def logging_skipped?
      _skip_logging
    end
  end
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
rails_ops-1.0.0.beta13 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta12 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta11 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta10 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta9 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta8 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta7 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta6 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta5 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta4 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta3 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta2 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.0.beta1 lib/rails_ops/mixins/log_settings.rb