Ooh. Serious one there, just revealed by unit testing.
Add code to profile helpers and possibly extend the nil class to add phantom users at runtime.
Seems that this isn’t as bad as first thought. Changed user profile linker and event helper to respond to nil users with an [anonymous or deleted user].
Also changed user model to rescue recordnotfound errors.
Discussion and changes
Dan Glegg (Project owner)
Seems that this isn’t as bad as first thought. Changed user profile linker and event helper to respond to nil users with an [anonymous or deleted user].
Also changed user model to rescue recordnotfound errors.