fix Range#step array/enumerator issue caused by Rails monkey patch, only support Ruby version 1.9.2 and greater