↧
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 ArticleAnswer 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 ArticleHow 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