hack for raise_on_missing_attribute to work with AR

per https://github.com/rails/rails/issues/4208