Prepare for Rails 4