Revert "fix for rails_best_practice"

This reverts commit 17c27ed457c04c0edf00c2e8f62d05858de2fa36.
Revert "Revert "fix for rails_best_practice""

This reverts commit 2eebae4f2c613021b67e3c7356bba52bb3b3d334.