Does anyone know how to use decorator in rabl file?
collection @invitations
child(:user)
attributes ....
I want to be able to do this:
collection @invitations
child(:user => user.decorate)
attributes ....
This is working well
object false
child UserDecorator.decorate(current_user)
I can't figure out the right syntax for my problem.