Rails 3.2 & Rails 4 compliance