Exception: ActiveRecordDoctor::Error::ConfigureCalledTwice

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

#initializeConfigureCalledTwice

Returns a new instance of ConfigureCalledTwice.



119
120
121
# File 'lib/active_record_doctor/errors.rb', line 119

def initialize
  super("The configuration file called ActiveRecordDoctor.configuration multiple times")
end

Instance Method Details

#detailsObject



123
124
125
126
127
128
129
# File 'lib/active_record_doctor/errors.rb', line 123

def details
  <<-MESSAGE
The configuration file in use has called ActiveRecordDoctor.configure more than
once but should do so EXACTLY ONCE. Please ensure that method is called exactly
once and retry.
  MESSAGE
end