Rails 4 Compatability