use Rails::VERSION::MAJOR as version check