Fix moved/deprecated methods in active support between 3.x <-> 4.x

This change allow us to be backwards compatible.
Thanks to @dkrusenstrahle for pointing out this issue.