Make a scope future-compatible with ActiveRecord 4.0.