Closed sbwoodside closed 7 years ago
@sbwoodside this looks like a good approach to me.
N.B. once is roar-rails 1.1 is out (see #131), we'll begin deprecating usage of module representers. You might want to switch to using decorators (inheriting from Roar::Decorator
). More info here: http://trailblazer.to/gems/representable/3.0/api.html#representer-modules
I'm new to Roar and I'm unable to find any explicit documentation on how to implement the index method. Based on looking through the other issues, this is what I have now:
This seems to be working. Is it the correct / approved way to implement the index method?