I'm unable to access view helpers in my rabl templates outside of a node block. This would be nice to conditionally include nodes to a json representation.
#index.json.rabl
collection @user_events
if user_signed_in?
node :hello do
"world"
end
end
undefined method `user_signed_in?' for #<RablRails::Compiler:0x00000104564f28>
I'm unable to access view helpers in my rabl templates outside of a node block. This would be nice to conditionally include nodes to a json representation.