@@ -83,6 +83,60 @@ def associate(reflection)
8383 # +default_include_directive+ config value when not provided)
8484 # @return [Enumerator<Association>]
8585 #
86+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:**=>{}}}, :include_slice=>nil}
87+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{:*=>{}}}}, :include_slice=>nil}
88+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>nil}
89+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:*=>{:*=>{}}}}
90+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:*=>{}}}
91+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:author=>{:*=>{}}}}
92+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:author=>{:posts=>{}}}}
93+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:author=>{:roles=>{}}}}
94+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:author=>{}, :" comments"=>{}}}
95+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:author=>{}}}
96+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:bio=>{}, :posts=>{}}}
97+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:bio=>{}}}
98+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:comments=>{:author=>{}}}}
99+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:comments=>{}, :author=>{:bio=>{}}}}
100+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:comments=>{}, :author=>{}}}
101+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:comments=>{}}}
102+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:post=>{}}}
103+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:posts=>{:tags=>{}}}}
104+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:posts=>{}}}
105+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:reviews=>{}}}
106+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:roles=>{}}}
107+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:tags=>{}, :posts=>{:tags=>{}}}}
108+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:tags=>{}}}
109+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{:writer=>{}, :articles=>{}}}
110+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:*=>{}}}, :include_slice=>{}}
111+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{:*=>{}}}}, :include_slice=>nil}
112+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{:posts=>{}}}}, :include_slice=>nil}
113+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{:roles=>{}}}}, :include_slice=>nil}
114+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{}, :" comments"=>{}}}, :include_slice=>nil}
115+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{}}}, :include_slice=>nil}
116+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{}}}, :include_slice=>{:comments=>{}}}
117+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:author=>{}}}, :include_slice=>{}}
118+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:bio=>{}, :posts=>{}}}, :include_slice=>nil}
119+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:bio=>{}}}, :include_slice=>nil}
120+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:body=>{}}}, :include_slice=>{}}
121+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:comments=>{:author=>{}}}}, :include_slice=>nil}
122+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:comments=>{}, :author=>{:bio=>{}}}}, :include_slice=>nil}
123+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:comments=>{}, :author=>{}}}, :include_slice=>nil}
124+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:comments=>{}}}, :include_slice=>nil}
125+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:id=>{}, :post=>{}, :author=>{}}}, :include_slice=>{}}
126+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:post=>{}}}, :include_slice=>nil}
127+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:posts=>{:comments=>{:author=>{}}}}}, :include_slice=>nil}
128+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:posts=>{:comments=>{}}}}, :include_slice=>nil}
129+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:posts=>{:tags=>{}}}}, :include_slice=>nil}
130+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:posts=>{}}}, :include_slice=>nil}
131+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:reviews=>{}}}, :include_slice=>nil}
132+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:roles=>{}}}, :include_slice=>nil}
133+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:tags=>{}, :posts=>{:tags=>{}}}}, :include_slice=>nil}
134+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:tags=>{}}}, :include_slice=>nil}
135+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:title=>{}, :comments=>{}, :blog=>{}, :author=>{}}}, :include_slice=>{}}
136+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:title=>{}}}, :include_slice=>{}}
137+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{:writer=>{}, :articles=>{}}}, :include_slice=>nil}
138+ # {:include_directive=>{:options=>{:allow_wildcard=>true}, :hash=>{}}, :include_slice=>nil}
139+ # {:include_directive=>{:options=>{}, :hash=>{:address=>{}}}, :include_slice=>nil}
86140 def associations ( include_directive = ActiveModelSerializers . default_include_directive , include_slice = nil )
87141 include_slice ||= include_directive
88142 return Enumerator . new unless object
0 commit comments