Rails 4 compatible