This fixes #45 by reverting parts of #38. IMHO, layout and version are global and must be shared across threads.
To change layout or version at runtime, maybe we need another approach, e.g. by setting parameters in the render :inertia. Using InertiaRails.configure within a controller action seems not right to me.
This fixes #45 by reverting parts of #38. IMHO,
layout
andversion
are global and must be shared across threads.To change
layout
orversion
at runtime, maybe we need another approach, e.g. by setting parameters in therender :inertia
. UsingInertiaRails.configure
within a controller action seems not right to me.