support rails 4.1.6 (fix LocalJumpError)