method
get_method_for_class
v4.2.7 -
Show latest stable
- Class:
ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder
get_method_for_class(klass)private
No documentation available.
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 314
def get_method_for_class(klass)
name = @key_strategy.call klass.model_name
prefix + "#{name}_#{suffix}"
end