When running with demo mode enabled in local development, running rake db:reset will clear out any existing DemoMode::Session record. This can cause the application to break due to an ActiveRecord::RecordNotFound error triggered by one of the controller before_actions. Instead of raising a hard error, we could probably force a logout instead. We'd just need to think about whether this wouldn't mask real lookup issues.
When running with demo mode enabled in local development, running
rake db:resetwill clear out any existingDemoMode::Sessionrecord. This can cause the application to break due to anActiveRecord::RecordNotFounderror triggered by one of the controllerbefore_actions. Instead of raising a hard error, we could probably force a logout instead. We'd just need to think about whether this wouldn't mask real lookup issues.