Permalink
Browse files

Silence warning: instance variable @session not initialized

  • Loading branch information...
1 parent bfb931b commit a3ab2b0ee1613ed66a4080198716c8fc3afa7b7a @brynary brynary committed Nov 9, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_controller/response.rb
View
3 actionpack/lib/action_controller/response.rb
@@ -47,7 +47,8 @@ def initialize
@block = nil
@body = "",
- @session, @assigns = [], []
+ @session = []
+ @assigns = []
end
def location; headers['Location'] end

0 comments on commit a3ab2b0

Please sign in to comment.