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



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
  "active_record_doctor configuration is a Ruby script that MUST call\nActiveRecordDoctor.configuration exactly once. That method was NOT called by\nthe configuration file in use. If you intend to provide custom configuration\nthen please ensure that method is called. Otherwise, please delete the\nconfiguration file.\n  MESSAGE\nend\n"