Sha256: be940d5dc7598db9127baba7eb7e428fb3625fecf428f35de56f8eb06c22fbee

Contents?: true

Size: 195 Bytes

Versions: 24

Compression:

Stored size: 195 Bytes

Contents

module SetCurrentAuth
  extend ActiveSupport::Concern

  included do
    before_action do
      Current.auth = SessionGuard.new(name: 'web', session: session, cookies: cookies)
    end
  end
end

Version data entries

24 entries across 12 versions & 1 rubygems

Version Path
kaze-0.19.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.19.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.18.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.18.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.17.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.17.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.16.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.16.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.15.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.15.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.14.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.14.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.13.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.13.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.12.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.12.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.11.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.11.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb
kaze-0.10.0 stubs/hotwire/app/controllers/concerns/set_current_auth.rb
kaze-0.10.0 stubs/inertia-common/app/controllers/concerns/set_current_auth.rb