Fix gem dependency for Rails4