class method
self.validate_global_service_configuration
Ruby on Rails 8.1.2
Since v7.2.3 PrivateSignature
self.validate_global_service_configuration(model_class)
No documentation comment.
Parameters
-
model_classreq
Source
# File activestorage/lib/active_storage/attached/model.rb, line 274
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
Defined in activestorage/lib/active_storage/attached/model.rb line 274
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Attached::Model