Support ActiveModel 4.0

ActiveModel 4.0.x unfortunately does not send :class as an option to the validator’s constructor.