Skip to content

Commit

Permalink
Bugfix: make devise happy (issue fixed by tlatim)
Browse files Browse the repository at this point in the history
  • Loading branch information
vhochstein committed Jan 21, 2011
1 parent 808525c commit ec065ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/components.rb
Expand Up @@ -121,6 +121,7 @@ def request_for_component(controller_path, options)
request_env["action_dispatch.request.symbolized_path_parameters"] = request_params
request_env["action_dispatch.request.parameters"] = request_params.with_indifferent_access
request_env["action_dispatch.request.path_parameters"] = Hash[request_params.select{|key, value| [:controller, :action].include?(key)}].with_indifferent_access
request_env["warden"] = request.env["warden"] if (request.env.has_key?("warden"))
component_request = ActionDispatch::Request.new(request_env)

# its an internal request request forgery protection has to be disabled
Expand Down

0 comments on commit ec065ed

Please sign in to comment.