ActiveRecord scopes investigation.