I have a situation where, based upon certain parameters, I would include certain parts of the object in the response, but it seems this cannot be done with json_builder.
ex:
foos @foos do |foo|
...
# can't do this
if @opts[include_bars]
things foo.bars do |bar|
...
end
end
end
I have a situation where, based upon certain parameters, I would include certain parts of the object in the response, but it seems this cannot be done with json_builder.
ex: