Module: Vident::Capabilities::StimulusDraft
- Included in:
- Vident::Component
- Defined in:
- lib/vident/capabilities/stimulus_draft.rb
Instance Method Summary collapse
- #after_component_initialize ⇒ Object
-
#resolve_stimulus_attributes_at_render_time ⇒ Object
Flag set before the guards so a sealed Draft can’t trap us in a loop where every subsequent call re-takes the sealed branch.
Instance Method Details
#after_component_initialize ⇒ Object
8 9 |
# File 'lib/vident/capabilities/stimulus_draft.rb', line 8 def after_component_initialize end |
#resolve_stimulus_attributes_at_render_time ⇒ Object
Flag set before the guards so a sealed Draft can’t trap us in a loop where every subsequent call re-takes the sealed branch.
13 14 15 16 17 18 19 20 |
# File 'lib/vident/capabilities/stimulus_draft.rb', line 13 def resolve_stimulus_attributes_at_render_time return if @__vident_procs_resolved @__vident_procs_resolved = true return if @__vident_draft.nil? || @__vident_draft.sealed? ::Vident::Internals::Resolver.resolve_procs_into( @__vident_draft, self.class.declarations, self ) end |