swaggard icon indicating copy to clipboard operation
swaggard copied to clipboard

Question: Can I use this without active_model_serializers ?

Open gengjiawen opened this issue 7 years ago • 1 comments

Hi, I am new to rails, can this library used without active_model_serializers, our project is using https://github.com/nesquena/rabl.

gengjiawen avatar Sep 02 '17 09:09 gengjiawen

In theory yes, by specifying in the config where your classes are that contain the documentation.

This is by default set to config.models_paths = ["#{Rails.root}/app/serializers/**/*.rb"] but I've used standard Ruby classes in my (admittedly Rails) app to add additional documentation in a couple of my projects too.

Am not sure how it will work with Rabl though, I guess you'd need to drop it in an see if it plays nice.

schinery avatar Oct 02 '17 12:10 schinery