Module: Jarvis::Configuration

Included in:
Jarvis
Defined in:
lib/jarvis/configuration.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/jarvis/configuration.rb', line 6

def self.included(base)
  base.include ActiveSupport::Configurable
  base.configure do |config|
    config.default_response = "What is this, I don't even"
    config.unfit_environment_response = "I'm really sorry, but that service needs to be configured"
    config.third_party_api_failure_respone = "Most unfortunately, that service is not working right now."
    config.standard_error_response = "I'm sorry, Something went wrong."
    config.autoload_paths = ["#{Jarvis.root}/app/services"]
  end
end