I''m using Edge Rails. I''m storing a class called
Hark::Session in the
session. When Rails reloads the session for the next request,
stale_session_check ends up calling
load_missing_constant("Hark::Session").
I have two problems:
1. Why is it a missing constant? In application.rb, I require
''hark/session'', and lib/hark/session.rb does in fact define
the class.
2. Why isn''t it found by load_missing_constant? It''s in the
right place,
given its name, and yet I end up with:
Session contains objects whose class definition isn''t available.
Remember to require the classes for all objects kept in the session.
(Original exception: uninitialized constant Module::Hark::Session
[NameError])
Jay Levitt
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---