Revert "Revert "fix for rails_best_practice""

This reverts commit 954e51a1dd4ab8248eb72b56b2e71ac1318ea83a.