Making the gem compatible with activemodel ~4