Skip to content

Commit

Permalink
Do not "privatize" URL helper in Liquid::Drops::Base (#3832)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova authored Jun 24, 2024
1 parent edaaff1 commit ab8ce0c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions lib/developer_portal/lib/liquid/drops/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ab8ce0c

Please sign in to comment.