Class: ExceptionTrack::Configuration
- Inherits:
-
Object
- Object
- ExceptionTrack::Configuration
- Defined in:
- lib/exception-track/configuration.rb
Instance Attribute Summary collapse
-
#environments ⇒ Object
environments for store Exception log in to database.
Instance Method Summary collapse
Instance Attribute Details
#environments ⇒ Object
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
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 |