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
…nt` (#697)
Rubocop v1.63.0 updates json v2.7.2. StimulusReflex relies on OpenStruct in both the
Dataset and the Element models. Attempting to run rails, ie a rails console, results in the error. This pull requets fixes this by explicitly requiring `ostruct`.
We should think about migrating off of `OpenStruct`, but this PR should make it work for now as a work-around.
Fixes#695
Bug Report
Describe the bug
Rubocop v1.63.0 updates json to v2.7.2.
json
v2.7.2 makes OpenStruct optional.StimulusReflex
relies onOpenStruct
in both the Dataset and the Element models. Attempting to run rails, ie arails console
, results in the errorTo Reproduce
using
rubocop v1.63.0
or above, attempt to run rails console or start a rails serverExpected behavior
the rails action can be performed without an error that causes it to exit
it seems a quick fix would be to explicitly requiring
ostruct
, like this suggestiona longer term fix would be to stop using
OpenStruct
altogether as its use is discouragedVersions
StimulusReflex
3.5.0.rc4
yarn 1.22.19
External tools
3.2.2p53
7.0.8.1
18.19.0
1.63.0
2.7.2
The text was updated successfully, but these errors were encountered: