Prevent errors when using Turbolinks with Ruby 1.8 - Fix #382