Can I aggregate over a calculated field?
I have a File resource, that has calculation :extension, I then have another resource called Attachment, that has_many :files.
Is it possible to do this:
6 Replies
give it a try and see 🙂
I did, but I got nil. But no errors.. I guess it is a bug in my code.. Was just confused
is your relationship name correct?
file
?Yeah, fixed that but still getting nil.
I mean that's a valid value if the attachment has no files
Hmm. I'll figure it out. I guess my change that is supposed to create the files might silently fail or something..
I g2g now, but thanks for trying to help 😇