test on rails 3.1, 3.2, 4.0.0.beta1
support rails 4