Compatible Rails 4