You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which works fine when viewing the SQL. The problem is the following RABL template creates multiple D database queries again. I'm using 0.14.0. This is the structure of my simplified Rabl.
show.rabl
object @obj
extends "documents/base"
base.rabl
child :B => :asb do |ab|
object ab
extends "shared/asb"
end
asb.rabl
child(:C => :csb) do
attributes :id
child(:D => :dsb) do
attributes :x, :y <<----------- multiple database calls
end
end
The text was updated successfully, but these errors were encountered:
I've got the following call in Rails 4
@obj = A.includes(B: { C: D}).find_by_uuid(params[:id])
Which works fine when viewing the SQL. The problem is the following RABL template creates multiple
D
database queries again. I'm using 0.14.0. This is the structure of my simplified Rabl.show.rabl
base.rabl
asb.rabl
The text was updated successfully, but these errors were encountered: