fix dependency check for rails

Fixes dependency for rails. Current variant block using rails newer then 2.3.12