Sha256: 173d9a5a3b348d17832ab1be9d7a40c0fbdc09858020f6c70de9d70d23604f4d
Contents?: true
Size: 1016 Bytes
Versions: 14
Compression:
Stored size: 1016 Bytes
Contents
# frozen_string_literal: true class <%= class_name %>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 # - params - parameters from the element's closest form (if any) # # 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 <% actions.each do |action| -%> def <%= action %> end <%= "\n" unless action == actions.last -%> <% end -%> end
Version data entries
14 entries across 14 versions & 1 rubygems