use define_attribute_method instead of define_attribute_methods which should make it work with activemodel 3.2