Fix Rails/ApplicationController offenses

Open Vitali Tatarintev requested to merge 239356-fix-Rails/ApplicationController into master

What does this MR do and why?

Fixes Rails/ApplicationController offenses.

Related to #239356

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.