Rails 4 compatability. Thanks @zhengjia.