method

validate_service_configuration

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Model
validate_service_configuration(association_name, service) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/attached/model.rb, line 234
        def validate_service_configuration(association_name, service)
          if service.present?
            ActiveStorage::Blob.services.fetch(service) do
              raise ArgumentError, "Cannot configure service :#{service} for #{name}##{association_name}"
            end
          else
            validate_global_service_configuration
          end
        end
Register or log in to add new notes.