attachinary icon indicating copy to clipboard operation
attachinary copied to clipboard

File instances break on serialization w/ active model serializers

Open AlexWheeler opened this issue 9 years ago • 0 comments

Active Model Serializers use the Rails json renderer, which expects the File instance to respond to as_ json , which optinally takes an options argument. Attachinary's FileMixin#as_json has a required argument, so end up with an ArgumentError 0 for 1

AlexWheeler avatar Oct 20 '16 13:10 AlexWheeler