method
build
rails latest stable - Class:
ActionDispatch::Routing::PolymorphicRoutes::HelperMethodBuilder
build(action, type)public
No documentation available.
# File actionpack/lib/action_dispatch/routing/polymorphic_routes.rb, line 189
def self.build(action, type)
prefix = action ? "#{action}_" : ""
suffix = type
if action.to_s == "new"
HelperMethodBuilder.singular prefix, suffix
else
HelperMethodBuilder.plural prefix, suffix
end
end