assembler / attachinary

Attachments handler for Rails that uses Cloudinary for storage.
MIT License
294 stars 129 forks source link

File instances break on serialization w/ active model serializers #142

Open AlexWheeler opened 8 years ago

AlexWheeler commented 8 years ago

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