turned out to be my mistake to use 'session.delete', which overwrites
the restore step. With reset_session now works great :)
Thanks.
def session_cleanup
backup = session.data.clone
reset_session
backup.each { |k, v| session[k] = v unless k.is_a?(String) && k
=~ /^as:/ }
end
On Apr 1, 1:34 am, Ed W <[email protected]> wrote:
> I will highlight the relevant parts of each message - hopefully this
> will allow you to fix your problem
>
> [email protected] wrote:
> > def session_cleanup
> > session.delete
> > session.data.each {|key, value| session[key] = value if key =! /
> > ^as:/ }
> > end
>
> ...
>
> > On Mar 24, 12:06 am, "[email protected]" <[email protected]> wrote:
> >> the approach we took is to backup the non
> >> activescaffold variables, [then] dump the entire session,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---