Skip to content

Commit

Permalink
Fixed double render error: erase_render_results no longer exists in r…
Browse files Browse the repository at this point in the history
…ails3
  • Loading branch information
Nathan Van der Auwera committed Apr 26, 2011
1 parent be75da5 commit 6229285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/action_web_service/scaffolding.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def scaffold_path(template_name)
end
def reset_invocation_response
erase_render_results
response.instance_variable_set :@header, Rack::Utils::HeaderHash.new(::ActionController::Response::DEFAULT_HEADERS.merge("cookie" => []))
self.instance_variable_set(:@_response_body, nil)
response.instance_variable_set :@header, Rack::Utils::HeaderHash.new("cookie" => [], 'Content-Type' => 'text/html')
end
def public_method_name(service_name, method_name)
Expand Down

0 comments on commit 6229285

Please sign in to comment.