Add cache_key functionality to ActiveRecord scopes