Method: Exekutor::Configuration#base_record_class
- Defined in:
- lib/exekutor/configuration.rb
#base_record_class ⇒ Class
Gets the base class for database records. Is derived from the #base_record_class_name option.
48 49 50 51 52 53 54 55 56 57 |
# File 'lib/exekutor/configuration.rb', line 48 def base_record_class const_get :base_record_class_name rescue ::StandardError # A nicer message for the default value if base_record_class_name == DEFAULT_BASE_RECORD_CLASS raise Error, "Cannot find ActiveRecord, did you install and load the gem?" end raise end |