method

reflection_class_for

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveRecord::Reflection
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 activerecord/lib/active_record/reflection.rb, line 33
        def reflection_class_for(macro)
          case macro
          when :composed_of
            AggregateReflection
          when :has_many
            HasManyReflection
          when :has_one
            HasOneReflection
          when :belongs_to
            BelongsToReflection
          else
            raise "Unsupported Macro: #{macro}"
          end
        end
Register or log in to add new notes.