Skip to content

Commit

Permalink
Explicitly require ostruct for StimulusReflex::Dataset and `Eleme…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
marcoroth authored Apr 26, 2024
1 parent 3a5111e commit 3f1b030
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/stimulus_reflex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
require "uri"
require "open-uri"
require "rack"
require "ostruct"
require "active_support/all"
require "action_dispatch"
require "action_cable"
Expand Down

0 comments on commit 3f1b030

Please sign in to comment.