lib/hanami/routing/endpoint_resolver.rb in hanami-router-1.0.1 vs lib/hanami/routing/endpoint_resolver.rb in hanami-router-1.1.0.beta1
- old
+ new
@@ -202,10 +202,10 @@
LazyEndpoint.new(string, @namespace)
end
# @api private
def classify(string)
- Utils::String.new(string).underscore.classify
+ Utils::String.transform(string, :underscore, :classify)
end
private
# @api private
def resolve_callable(callable)