From ab8ce0c70362aa28720a44fbe99d1697a50f0380 Mon Sep 17 00:00:00 2001 From: Daria Mayorova Date: Mon, 24 Jun 2024 18:43:50 +0200 Subject: [PATCH] Do not "privatize" URL helper in Liquid::Drops::Base (#3832) --- lib/developer_portal/lib/liquid/drops/base.rb | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/lib/developer_portal/lib/liquid/drops/base.rb b/lib/developer_portal/lib/liquid/drops/base.rb index a4ef223833..e2bd622d80 100644 --- a/lib/developer_portal/lib/liquid/drops/base.rb +++ b/lib/developer_portal/lib/liquid/drops/base.rb @@ -34,12 +34,6 @@ def privatize(defined_methods) end end - def publicize(*defined_methods) - defined_methods.each do |method| - @base.send(:public, method) - end - end - def proxy(&block) instance_eval(&block) end @@ -97,11 +91,7 @@ def deprecated(object) end end - privately_include do - include System::UrlHelpers.cms_url_helpers - publicize :_routes - end - + include System::UrlHelpers.cms_url_helpers def url_options default_url_options