It would be better to just have this as:
```@app_config.update_attribute(:viewed, true)```