Rails 4.1 fix depracation waring (terminator should be lambda)