Bring back the valid_options class accessor

It is need in activerecord-deprecated_finders