method

handle_model

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: HelperMethodBuilder
handle_model(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 261 def handle_model(record) args = [] model = record.to_model named_route = if model.persisted? args << model get_method_for_string model.model_name.singular_route_key else get_method_for_class model end [named_route, args] end
Register or log in to add new notes.