Method: ActiveScaffold::DataStructures::NestedInfoAssociation#match_model?
- Defined in:
- lib/active_scaffold/data_structures/nested_info.rb
#match_model?(model) ⇒ Boolean
134 135 136 137 138 139 140 |
# File 'lib/active_scaffold/data_structures/nested_info.rb', line 134 def match_model?(model) if association.polymorphic? child_association&.inverse_klass == model else association.klass == model end end |