refector version compaireing
extract minimum rails version out to a method and use that in deprecation warning