Rails 4 compatability