method

polymorphic_mapping

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: HelperMethodBuilder
polymorphic_mapping(target, record) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 332
            def polymorphic_mapping(target, record)
              if record.respond_to?(:to_model)
                target._routes.polymorphic_mappings[record.to_model.model_name.name]
              else
                target._routes.polymorphic_mappings[record.class.name]
              end
            end
Register or log in to add new notes.