Sha256: 17e9267e9d5f852f7e49f9d24a4a0971850a9a661a35743042aed0d74533e953

Contents?: true

Size: 303 Bytes

Versions: 1

Compression:

Stored size: 303 Bytes

Contents

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

    def enabled_env?(env)
      return false if env.blank?
      environments.include?(env.to_sym)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exception-track-0.1.0 lib/exception-track/configuration.rb