Browse files

ActionController::Metal#to_rack converted to #to_a to match normal ra…

…ck convention
  • Loading branch information...
1 parent 70d779a commit 16c01224cbe503ab1f4d0f02955b16662be00116 @wycats wycats committed Aug 6, 2009
View
4 actionpack/lib/action_controller/metal.rb
@@ -72,11 +72,11 @@ def location=(url)
def call(name, env)
@_env = env
process(name)
- to_rack
+ to_a
end
# :api: private
- def to_rack
+ def to_a
[status, headers, response_body]
end
View
2 actionpack/lib/action_controller/metal/rack_convenience.rb
@@ -20,7 +20,7 @@ def params
end
# :api: private
- def to_rack
+ def to_a
@_response.prepare!
@_response.to_a
end

0 comments on commit 16c0122

Please sign in to comment.