Wouldn't this line also trigger in case Turbolinks is enabled?
Is that something you want?
I haven't written any Rails code in over a year and I'm not really familiar with it.