Skip to content

Commit

Permalink
switched back to send method instead of public_send
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexParamonov committed Feb 13, 2011
1 parent 64c5257 commit 1da93cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/inherited_resources/url_helpers.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1da93cc

Please sign in to comment.