Overriding nil response

7 views
Skip to first unread message

Tomás Barrios

unread,
Jul 28, 2014, 6:52:05 PM7/28/14
to roar...@googlegroups.com
Is there a way to override all the attributes that return null into "" (empty string)?

I am using Rails

Thanks!

Nick Sutterer

unread,
Jul 28, 2014, 8:27:01 PM7/28/14
to roar...@googlegroups.com
There is an option render_nil: which renders to nil. Why do you need an empty string? Representable is still 2.0.0.rc1 so if you bring up a good reason I might include it for Roar 1.0 :)

Nick


--
You received this message because you are subscribed to the Google Groups "Roar" group.
To unsubscribe from this group and stop receiving emails from it, send an email to roar-talk+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages