Sha256: b983990201f8744bf6e86c540595e5987a5753ca217bd847ffae3cf8e0c354fd

Contents?: true

Size: 296 Bytes

Versions: 5

Compression:

Stored size: 296 Bytes

Contents

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

5 entries across 5 versions & 1 rubygems

Version Path
exception-track-0.2.0 lib/exception-track/configuration.rb
exception-track-0.1.5 lib/exception-track/configuration.rb
exception-track-0.1.4 lib/exception-track/configuration.rb
exception-track-0.1.3 lib/exception-track/configuration.rb
exception-track-0.1.2 lib/exception-track/configuration.rb