Merge pull request #10538 from neerajdotname/3882

scope_chain should not be mutated for other reflections
Conflicts:
	activerecord/CHANGELOG.md