method

reflection_class_for

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ReflectionExtension
reflection_class_for(macro) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.