Sha256: 9edabcd3a0a9b27afc5cdd2dddeea5438ed0a32b6c50170e3456aac2d22c0156

Contents?: true

Size: 270 Bytes

Versions: 4

Compression:

Stored size: 270 Bytes

Contents

class StimulusReflex::Controller
  attr_reader :channel

  delegate :connection, to: :channel
  delegate :session, to: :request

  def initialize(channel)
    @channel = channel
  end

  def request
    @request ||= ActionDispatch::Request.new(connection.env)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stimulus_reflex-0.1.10 lib/stimulus_reflex/controller.rb
stimulus_reflex-0.1.9 lib/stimulus_reflex/controller.rb
stimulus_reflex-0.1.8 lib/stimulus_reflex/controller.rb
stimulus_reflex-0.1.7 lib/stimulus_reflex/controller.rb