Updated to support Rais 4.0

Hi!
I fork your repo to make it ready for rails 4.0.
Thanks!