Permalink
Browse files

Remove the 'auto_redirect_to' view helper, it's unnecessary.

  • Loading branch information...
1 parent ebb5de2 commit 6fc78253703753768119b2ba38f02215f15d7f1d @FooBarWidget committed Sep 3, 2008
Showing with 0 additions and 19 deletions.
  1. +0 −19 lib/auto_redirection/view_helpers.rb
View
19 lib/auto_redirection/view_helpers.rb
@@ -31,25 +31,6 @@ module ViewHelpers
def pass_redirection_information
return render_redirection_information(get_redirection_information)
end
-
- def auto_redirect_to(location, params = {})
- # TODO: merge this with 'auto_redirect_to' in ControllerExtensions.
- case location
- when :here
- info = {
- 'controller' => controller.controller_path,
- 'action' => controller.action_name,
- 'method' => controller.request.method,
- 'params' => controller.params.merge(params)
- }
- logger.debug("Auto-Redirection: saving redirection information " <<
- "for: #{controller.controller_path}/#{controller.action_name}" <<
- " (#{request.method}), parameters: #{info['params'].inspect}")
- else
- raise ArgumentError, "Unknown location '#{location}'."
- end
- return render_redirection_information(info)
- end
private
def get_redirection_information

0 comments on commit 6fc7825

Please sign in to comment.