Change railties dependicies version to make gem compatible with Rails 4