Rails 4 adjustments.