Support recent 4.0.0 active_record -> base_klass