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
In my case, the objects rendered are child of Simpledelegator Class
I get this error as soon I add cached: true to my json.jbuilder view: ActionView::Template::Error (undefined method nhut' for [#<Cmdmary::Etudprix`
The Cmdmary::Etudprix is the AR object and not the Decorated object (that define nhut) passed to the json.
Jbuilder use also Delegator if cached is true. Perhaps this colide with mine?
Without cached: true, all is working without problem.
Any advice how to make this work?
The text was updated successfully, but these errors were encountered:
net1957
changed the title
jBuilder 2.11.3, Rails 6.1.4.1 wirh cached; true fil to render onjects that are child of Simpledelegator
jBuilder 2.11.3, Rails 6.1.4.1 wirh cached: true fail to render onjects that are child of Simpledelegator
Nov 24, 2021
net1957
changed the title
jBuilder 2.11.3, Rails 6.1.4.1 wirh cached: true fail to render onjects that are child of Simpledelegator
jBuilder 2.11.3, Rails 6.1.4.1 wirh cached: true fail to render objects that are child of Simpledelegator
Nov 24, 2021
net1957
changed the title
jBuilder 2.11.3, Rails 6.1.4.1 wirh cached: true fail to render objects that are child of Simpledelegator
jBuilder 2.11.3, Rails 6.1.4.1 fail to render objects that are child of Simpledelegator
Nov 25, 2021
In my case, the objects rendered are child of Simpledelegator Class
I get this error as soon I add cached: true to my json.jbuilder view:
ActionView::Template::Error (undefined method
nhut' for [#<Cmdmary::Etudprix`The Cmdmary::Etudprix is the AR object and not the Decorated object (that define nhut) passed to the json.
Jbuilder use also Delegator if cached is true. Perhaps this colide with mine?
Without cached: true, all is working without problem.
Any advice how to make this work?
The text was updated successfully, but these errors were encountered: