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:reset
will clear out any existingDemoMode::Session
record. This can cause the application to break due to anActiveRecord::RecordNotFound
error triggered by one of the controllerbefore_action
s. 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.