when_library_loaded('ActiveSupport', :version_file => 'active_support/version') do
  require 'rails2_ruby2/i18n_patch'
  require 'rails2_ruby2/compressed_memcached_store_patch'
  require 'rails2_ruby2/erb_util_silence'
end

when_library_loaded('ActionController',
   :lib_const_string => 'ActionPack', :version_file => 'action_pack/version') do
  # require 'rails2_ruby2/named_route_collection_patch'
  # require 'rails2_ruby2/convert_cookies_patch'
  # require 'rails2_ruby2/filter_parameters_patch'
  # require 'rails2_ruby2/action_controller_perform_action_patch'
end

when_library_loaded('ActiveSupport', :version_file => 'active_support/version') do
  require 'rails2_ruby2/i18n_patch'
  require 'rails2_ruby2/compressed_memcached_store_patch'
  require 'rails2_ruby2/erb_util_silence'
end

when_library_loaded('ActionController',
   :lib_const_string => 'ActionPack', :version_file => 'action_pack/version') do
  require 'rails2_ruby2/named_route_collection_patch'
  # require 'rails2_ruby2/convert_cookies_patch'
  # require 'rails2_ruby2/filter_parameters_patch'
  # require 'rails2_ruby2/action_controller_perform_action_patch'
end

Add back in the named route collection patch
Add back in the named route collection patch

that makes URL helper methods public.

This is not included in the upstream rails 2.3 LTS changes. Those methods there still set the visibility of these methods to protected.

Reference 1: https://github.com/makandra/rails/blob/cfb31edb5441f0b12693a3b509dadf87fe1df843/actionpack/lib/action_controller/routing/route_set.rb#L151
Reference 2: https://github.com/makandra/rails/blob/cfb31edb5441f0b12693a3b509dadf87fe1df843/actionpack/lib/action_controller/routing/route_set.rb#L203
