method

polymorphic_mapping

Importance_0
v6.0.0 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::PolymorphicRoutes
polymorphic_mapping(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 168
        def polymorphic_mapping(record)
          if record.respond_to?(:to_model)
            _routes.polymorphic_mappings[record.to_model.model_name.name]
          else
            _routes.polymorphic_mappings[record.class.name]
          end
        end
Register or log in to add new notes.