Exception: ActiveRecordDoctor::Error::ConfigureNotCalled

Inherits:
ActiveRecordDoctor::Error show all
Defined in:
lib/active_record_doctor/errors.rb

Instance Attribute Summary

Attributes inherited from ActiveRecordDoctor::Error

#config_path

Instance Method Summary collapse

Methods inherited from ActiveRecordDoctor::Error

[], #user_message

Constructor Details

#initializeConfigureNotCalled

Returns a new instance of ConfigureNotCalled.



103
104
105
# File 'lib/active_record_doctor/errors.rb', line 103

def initialize
  super("The configuration file did not call ActiveRecordDoctor.configuration")
end

Instance Method Details

#detailsObject



107
108
109
110
111
112
113
114
115
# File 'lib/active_record_doctor/errors.rb', line 107

def details
  <<-MESSAGE
active_record_doctor configuration is a Ruby script that MUST call
ActiveRecordDoctor.configuration exactly once. That method was NOT called by
the configuration file in use. If you intend to provide custom configuration
then please ensure that method is called. Otherwise, please delete the
configuration file.
  MESSAGE
end