attachinary
attachinary copied to clipboard
File instances break on serialization w/ active model serializers
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