Flowdock
method

polymorphic_mapping

Importance_0
Ruby on Rails latest stable (v5.2.3) - 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 328
            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.