rails/rails — Issue #5011: `unscoped` scope caches values
Author: karpah
Created: 2012-02-12 05:38:11+00:00
State: open

I've created a default scope in a model named Fixture:

`default_scope { where(public: true) }`

`Fixture.unscoped.all` will then start caching from the table like so:

https://gist.github.com/1806442

I can create and update any rows in the table, but the `Fixture.unscoped.all` call will remain unchanged. Fixture.scoped.all will update appropriately, but not unscoped.