Method: NoBrainer::Document::Association::HasMany::Metadata#foreign_type
- Defined in:
- lib/no_brainer/document/association/has_many.rb
#foreign_type ⇒ Object
17 18 19 |
# File 'lib/no_brainer/document/association/has_many.rb', line 17 def foreign_type [:foreign_type].try(:to_sym) || ([:as] && :"#{[:as]}_type") end |