Class: ExceptionTrack::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/exception-track/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentsObject

environments for store Exception log in to database. default: [:development, :production]



7
8
9
# File 'lib/exception-track/configuration.rb', line 7

def environments
  @environments
end

Instance Method Details

#enabled_env?(env) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
12
13
# File 'lib/exception-track/configuration.rb', line 9

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

  environments.include?(env.to_sym)
end