Deprecating @session, but it's already set

What do I do about a deprecation warning if my own code is innocent?

RuntimeError: Deprecating @session, but it's already set to #<ActionController::TestSession:0xb698eb10 @attributes={"flash"=>{}}, @saved_attributes=nil, @session_id="">! Use the session= writer method instead of setting @session directly.     /usr/lib/ruby/gems/1.8/gems/actionpack- blah blah blah     /usr/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/test_process.rb:353:in `get'

I might reproduce the problem in a sample project upon request, but this has to be easy, right?

Should I grep for a @session.= and monkey-patch it? There are too freaking many of them!

Hi, you should be able to do a query/replace to change @session to session within your rails application.

Good luck,

-Conrad

Conrad Taylor wrote:

Hi, you should be able to do a query/replace to change @session to session within your rails application.

If it were that easy...

...of course I have never used @session! And grep @session . -r returns no hits, so no plugin or generator has generated one.