Sha256: f544bb3b5a881335749542bea7501a2dbd674b6c18b3880f6af08536871597ed

Contents?: true

Size: 328 Bytes

Versions: 4

Compression:

Stored size: 328 Bytes

Contents

# frozen_string_literal: true

module ExceptionTrack
  class Configuration
    # environments for store Exception log in to database.
    # default: [:development, :production]
    attr_accessor :environments

    def enabled_env?(env)
      return false if env.blank?

      environments.include?(env.to_sym)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exception-track-1.3.0 lib/exception-track/configuration.rb
exception-track-1.2.0 lib/exception-track/configuration.rb
exception-track-1.1.0 lib/exception-track/configuration.rb
exception-track-1.0.0 lib/exception-track/configuration.rb