method

handle_model_call

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: HelperMethodBuilder
handle_model_call(target, record) public

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 277
          def handle_model_call(target, record)
            if mapping = polymorphic_mapping(target, record)
              mapping.call(target, [record], suffix == "path")
            else
              method, args = handle_model(record)
              target.public_send(method, *args)
            end
          end
Register or log in to add new notes.