lib/hanami/routing/resource/nested.rb in hanami-router-1.0.0.beta2 vs lib/hanami/routing/resource/nested.rb in hanami-router-1.0.0.beta3
- old
+ new
@@ -26,9 +26,11 @@
@resource_name.zip(@path).flatten.join
end
private
+ # @api private
+ # @since 0.4.0
def _calculate(param_wildcard, resource = nil)
return if resource.nil?
@path << resource.wildcard_param(param_wildcard.pop)
_calculate(param_wildcard, resource.parent)
end