Question

We currently have an application running Sinatra that different users from different areas visit. When a user logs in it figures out which area you are in, and shows you the routes, helpers and models to load.

Currently when users are browsing, the application seems to be remembering the location of the previous user that clicked (or logged in) and switches the whole application to that configuration and location.

I have tried to change the application to load instead of require the files needed (as I have been told that this will reload the files each time) and we thought it was solved, but it seems to have come up again.

Is the answer to this problem to have the applications running separately, or is there another way around this?

Was it helpful?

Solution

I've come to an answer on this, it seems that loading the files still leaves a memory, I've put the models into namespaces which has fixed the issue. Putting the models into a namespace and referencing with the namespace.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top