Frederick Cheung wrote:
> 2.2 is a bit easier actually -
> 
> Struct.new('FakeSession', :session_id)
> fake_cgi_session = Struct::FakeSession.new('some session id')
> 
> session = WhateverSessionStoreClass.new(fake_cgi_session)
> session.restore
> 
> Fred
> 

Revisiting old history. Huh, I swear I had this working before in Rails 
2.1, but I return to it to finish it off and now it does not.

on the .new(fake_cgi_session) call, I get:

NoMethodError: private method `new_session' called for #<struct 
Struct::FakeSession session_id="some session id">


I probably just need to get my app working in 2.3, where this is all 
much more consistent and rational.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to