Makes us work with Rails 3 and 4