module ActiveStorage::Reflection::ReflectionExtension
def add_attachment_reflection(model, name, reflection)
def add_attachment_reflection(model, name, reflection) model.attachment_reflections = model.attachment_reflections.merge(name.to_s => reflection) end