Change dependency to Rails 4