Retain ActionPack dependency on ActionView
Include AV::Layouts directly in AM::Base

No need to do this in railtie as AM depends on AV either way
Remove missing integration points of AV extraction
polymorphic belongs_to association with touch: true updates old record correctly

Example: Given you have a comments model with a polymorphic commentable
association (e.g. books and songs) with the touch option set.
Every time you update a comment its commentable should be touched.
This was working when you changed attributes on the comment or when you
moved the comment from one book to another. However, it was not working
when moving a comment from a book to a song. This is now fixed.
Merge pull request #12646 from severin/polymorphic_belongs_to_touch

polymorphic belongs_to association with touch: true updates old record correctly
Merge pull request #13189 from strzalek/retain-ap-av-dep

Retain ActionPack dependency on ActionView. Fixes #12979.