fix donations calculator with rails 4.1