method

validate_global_service_configuration

rails latest stable - Class: ActiveStorage::Attached::Model

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

validate_global_service_configuration(model_class)
private

No documentation available.

# File activestorage/lib/active_storage/attached/model.rb, line 270
        def validate_global_service_configuration(model_class)
          if model_class.connected? && ActiveStorage::Blob.table_exists? && Rails.configuration.active_storage.service.nil?
            raise RuntimeError, "Missing Active Storage service name. Specify Active Storage service name for config.active_storage.service in config/environments/#{Rails.env}.rb"
          end
        end