Module: ActiveStorage::Reflection::ActiveRecordExtensions::ClassMethods
Relationships & Source Files | |
Defined in: | activestorage/lib/active_storage/reflection.rb |
Instance Method Summary
-
#reflect_on_all_attachments
Returns an array of reflection objects for all the attachments in the class.
-
#reflect_on_attachment(attachment)
Returns the reflection object for the named
attachment
.
Instance Method Details
#reflect_on_all_attachments
Returns an array of reflection objects for all the attachments in the class.
# File 'activestorage/lib/active_storage/reflection.rb', line 49
def .values end
#reflect_on_attachment(attachment)
Returns the reflection object for the named attachment
.
User. (:avatar)
# => the avatar reflection
# File 'activestorage/lib/active_storage/reflection.rb', line 58
def ( ) [ .to_s] end