method

handle_model

Importance_0
v4.2.7 - 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 250 def handle_model(record) args = [] model = record.to_model name = if model.persisted? args << model model.model_name.singular_route_key else @key_strategy.call model.model_name end named_route = prefix + "#{name}_#{suffix}" [named_route, args] end
Register or log in to add new notes.