swaggard
swaggard copied to clipboard
Question: Can I use this without active_model_serializers ?
Hi, I am new to rails, can this library used without active_model_serializers, our project is using https://github.com/nesquena/rabl.
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.