Sha256: 4dcc8aeff9aa66856378033ca79a40c8d8b66861878ca2dbfb8db898ca54970d
Contents?: true
Size: 328 Bytes
Versions: 2
Compression:
Stored size: 328 Bytes
Contents
# frozen_string_literal: true class StimulusReflex::Reflex attr_reader :channel, :url delegate :connection, to: :channel delegate :session, to: :request def initialize(channel, url: nil) @channel = channel @url = url end def request @request ||= ActionDispatch::Request.new(connection.env) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stimulus_reflex-1.1.1 | lib/stimulus_reflex/reflex.rb |
stimulus_reflex-1.1.0 | lib/stimulus_reflex/reflex.rb |