Change ->(..) {..} to lambda {|..| ....} because this expression is only supported since Ruby 2.0