Quantcast
Channel: How to dynamically add properties to a ROAR representer? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Chico Carvalho for How to dynamically add properties to a ROAR...

I believe the best approach for the problem would be to use Roar's writer:. It completely turns control over the output to you by passing a handful of values it calls options to a provided lambda. For...

View Article


Answer by NobodysNightmare for How to dynamically add properties to a ROAR...

I ended up dynamically creating classes from my basic representer:class TicketRepresenter property :subject property :description def self.create(ticket, context = {}) klass =...

View Article


How to dynamically add properties to a ROAR representer?

I am using ROAR to implement an API for a rails application. This application deals with tickets that can have attributes like a subject and a description, but also have user defined attributes. For...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>