Flexible dependencies to meet with Rails 4.1