From 1da93cc1a99b5566c452479e8b0d81aff7e2385d Mon Sep 17 00:00:00 2001 From: Alexander Date: Sun, 13 Feb 2011 04:48:30 -0800 Subject: [PATCH] switched back to send method instead of public_send --- lib/inherited_resources/url_helpers.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/inherited_resources/url_helpers.rb b/lib/inherited_resources/url_helpers.rb index bc717567..f48e8950 100644 --- a/lib/inherited_resources/url_helpers.rb +++ b/lib/inherited_resources/url_helpers.rb @@ -216,7 +216,7 @@ def #{prefix}#{name}_path(*given_args) given_options = given_args.extract_options! if given_options[:action] then prefix = "\#{given_options[:action]}_" - public_send prefix + "#{segments}_path", #{ivars} + send prefix + "#{segments}_path", #{ivars} else #{prefix}#{segments}_path(#{ivars}) end @@ -226,7 +226,7 @@ def #{prefix}#{name}_url(*given_args) given_options = given_args.extract_options! if given_options[:action] then prefix = "\#{given_options[:action]}_" - public_send prefix + "#{segments}_url", #{ivars} + send prefix + "#{segments}_url", #{ivars} else #{prefix}#{segments}_url(#{ivars}) end