Skip to content

Instantly share code, notes, and snippets.

@wjessop
Created July 11, 2010 00:54
Show Gist options
  • Save wjessop/471168 to your computer and use it in GitHub Desktop.
Save wjessop/471168 to your computer and use it in GitHub Desktop.
Warden::Manager.before_failure do |env, opts|
request = env["action_controller.rescue.request"] ||= ActionController::Request.new(env)
request.params["controller"] = "static_site_autheticator"
env['action_dispatch.request.path_parameters'][:action] = "login"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment