Sha256: fbb6f23c6e0e85e092ec033dd16681315a2ab88791b7c19406c6932b868128c5

Contents?: true

Size: 406 Bytes

Versions: 89

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

89 entries across 89 versions & 1 rubygems

Version Path
rails_ops-1.5.8 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.5.7 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.5.6 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.5.5 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.5.4 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.5.0 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.8 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.7 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.6 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.5 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.4 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.3 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.2 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.0.17.1 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.1 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.4.0 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.3.0 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.2.3 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.2.2 lib/rails_ops/mixins/log_settings.rb
rails_ops-1.2.1 lib/rails_ops/mixins/log_settings.rb