Take a look at an earlier topic today, called ''Giving models access to
session data'' or this blog post:
http://www.koziarski.net/archives/2005/07/16/environment
2005/7/20, Ben Schumacher
<benschumacher-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:>
> I could probably do some digging and figure this out by myself, but
> I''ve decided to take the easy way out...
>
> That said, is there a way to access the session hash from an
> ActiveRecord::Observer? So far I''ve attempted to use controller,
> @controller, session and @session. I feel like I''ve got to be
getting
> close unless, of course, it''s just not possible. Any hints?
>
> Thanks,
>
> Ben
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
--
Rafael Rezende
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails