Exception: ActiveRecordDoctor::Error::ConfigureNotCalled
- Inherits:
-
ActiveRecordDoctor::Error
- Object
- RuntimeError
- ActiveRecordDoctor::Error
- ActiveRecordDoctor::Error::ConfigureNotCalled
- Defined in:
- lib/active_record_doctor/errors.rb
Instance Attribute Summary
Attributes inherited from ActiveRecordDoctor::Error
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize ⇒ ConfigureNotCalled
constructor
A new instance of ConfigureNotCalled.
Methods inherited from ActiveRecordDoctor::Error
Constructor Details
#initialize ⇒ ConfigureNotCalled
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
#details ⇒ Object
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 |