Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to execute CableReady operations on StimulusReflex::Element #489

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
cable_ready accessor and writer on element
  • Loading branch information
marcoroth committed Feb 20, 2023
commit 05c6da5bf9fdea47b0171321217ac0cdb8bb3131
4 changes: 2 additions & 2 deletions lib/stimulus_reflex/element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class StimulusReflex::Element < OpenStruct
include StimulusReflex::AttributeBuilder

attr_reader :attrs, :dataset, :selector
attr_accessor :cable_ready
attr_reader :attrs, :dataset, :selector, :cable_ready
attr_writer :cable_ready

alias_method :data_attributes, :dataset

Expand Down