Added some missing references, see https://github.com/rails/rails/issues/12982
Merge pull request #1737 from chancancode/add_missing_references

Added some missing references