Exception: ConfigLoader::MissingConfigFileError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ConfigLoader::MissingConfigFileError
- Defined in:
- lib/config_loader/missing_config_file_error.rb
Instance Method Summary collapse
-
#initialize(filename) ⇒ MissingConfigFileError
constructor
A new instance of MissingConfigFileError.
Constructor Details
#initialize(filename) ⇒ MissingConfigFileError
Returns a new instance of MissingConfigFileError.
3 4 5 6 7 8 9 10 |
# File 'lib/config_loader/missing_config_file_error.rb', line 3 def initialize(filename) = [ "The config file couldn't be found: #{filename}", "ENV['RAILS_ENV'] = '#{ENV["RAILS_ENV"]}'", "ENV['RACK_ENV'] = '#{ENV["RACK_ENV"]}'", "ENV['RAILS_ROOT'] = '#{ENV["RAILS_ROOT"]}'" ] super(.join("\n")) end |