find_or_create_by doesn't work if passing money attributes
Closed this issue · 1 comments
michaelrbock commented
If you have an attribute that is a monetize attribute, methods like create
and update
work and you can pass values directly for that attribute, but find_or_create_by
doesn't work
aldhsu commented
I ran into something similar today. You cannot use money objects in where
conditions. This came as a surprise to me as it should be supported by serializers automatically. However, looking at the code, that isn't how money-rails ties into Rails. My guess is because Money uses two fields which isn't supported by serializers.