Use synvert snippets to automatically rewrite ruby code for a smoother upgrade path to Rails 5.

Read more at the source