Sha256: eebccaad7ea6ac353081934e24f1e250895fa031b46af93b216c8dfd8cfaa350

Contents?: true

Size: 590 Bytes

Versions: 1

Compression:

Stored size: 590 Bytes

Contents

require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/hash_with_indifferent_access'

module Itsf
  module Services
    module Configuration
      def configure
        yield self
      end

      mattr_accessor(:silenced_levels) do
        {
          test:        [],
          development: [],
          production:  []
        }.with_indifferent_access
      end

      def silenced_levels=(silenced_levels)
        @@silenced_levels = silenced_levels.with_indifferent_access
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
itsf_services-0.3.1 lib/itsf/services/configuration.rb