method
reflection_class_for
v7.0.0 -
Show latest stable
- Class:
ActiveStorage::Reflection::ReflectionExtension
reflection_class_for(macro)private
No documentation available.
# File activestorage/lib/active_storage/reflection.rb, line 37
def reflection_class_for(macro)
case macro
when :has_one_attached
HasOneAttachedReflection
when :has_many_attached
HasManyAttachedReflection
else
super
end
end