Sha256: bbafa3200be43acd342599f87cd12eb7a3e87bd5f2bd9b31ff7b922ebf4c842c

Contents?: true

Size: 838 Bytes

Versions: 15

Compression:

Stored size: 838 Bytes

Contents

# frozen_string_literal: true

class <%= @name.classify %>Reflex < ApplicationReflex
  # Add Reflex methods in this file.
  #
  # All Reflex instances expose the following properties:
  #
  #   - connection - the ActionCable connection
  #   - channel - the ActionCable channel
  #   - request - an ActionDispatch::Request proxy for the socket connection
  #   - session - the ActionDispatch::Session store for the current visitor
  #   - url - the URL of the page that triggered the reflex
  #   - element - a Hash like object that represents the HTML element that triggered the reflex
  #
  # Example:
  #
  #   def example(argument=true)
  #     # Your logic here...
  #     # Any declared instance variables will be made available to the Rails controller and view.
  #   end
  #
  # Learn more at: https://docs.stimulusreflex.com
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
stimulus_reflex-3.1.4 lib/generators/templates/custom_reflex.rb
stimulus_reflex-3.1.3 lib/generators/templates/custom_reflex.rb
stimulus_reflex-3.1.2 lib/generators/templates/custom_reflex.rb
stimulus_reflex-3.0.0 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.2.3 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.2.2 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.2.1 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.2.0 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.9 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.8 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.7 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.6 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.5 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.4 lib/generators/templates/custom_reflex.rb
stimulus_reflex-2.1.3 lib/generators/templates/custom_reflex.rb