Method: ActiveRecord::Reflection::AssociationReflection#add_as_polymorphic_through
- Defined in:
- activerecord/lib/active_record/reflection.rb
#add_as_polymorphic_through(reflection, seed) ⇒ Object
736 737 738 |
# File 'activerecord/lib/active_record/reflection.rb', line 736 def add_as_polymorphic_through(reflection, seed) seed + [PolymorphicReflection.new(self, reflection)] end |