As above, change to

```
!Rails.env.development? &&
!EditModeDetection.editing_allowed?(request.env) &&
```