Method: Graphiti::Sideload::PolymorphicBelongsTo#child_for_type!
- Defined in:
- lib/graphiti/sideload/polymorphic_belongs_to.rb
#child_for_type!(type) ⇒ Object
102 103 104 105 106 107 108 109 |
# File 'lib/graphiti/sideload/polymorphic_belongs_to.rb', line 102 def child_for_type!(type) if (child = child_for_type(type)) child else err = ::Graphiti::Errors::PolymorphicSideloadTypeNotFound raise err.new(self, type) end end |