method
attachment_service_name
v7.2.3 -
Show latest stable
- Class:
ActiveStorage::Attached::Changes::CreateOne
attachment_service_name()private
No documentation available.
# File activestorage/lib/active_storage/attached/changes/create_one.rb, line 120
def attachment_service_name
service_name = record.attachment_reflections[name].options[:service_name]
if service_name.is_a?(Proc)
service_name = service_name.call(record)
Attached::Model.validate_service_configuration(service_name, record.class, name)
end
service_name
end