module ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods

def reflect_on_all_attachments

class.
Returns an array of reflection objects for all the attachments in the
def reflect_on_all_attachments
  attachment_reflections.values
end

def reflect_on_attachment(attachment)


# => the avatar reflection
User.reflect_on_attachment(:avatar)

Returns the reflection object for the named +attachment+.
def reflect_on_attachment(attachment)
  attachment_reflections[attachment.to_s]
end