Modify rails dependency to allow for rails 4