Sha256: 67625b5bb05815ffb5668ada22a43a488e541815cc43c8d4cd088befe4dd47d2

Contents?: true

Size: 286 Bytes

Versions: 8

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

# Add Warden middkeware to AnyCable stack to allow accessing
# Devise current user via `env["warden"].user`.
#
# See <%= DOCS_ROOT %>/ruby/authentication
AnyCable::Rails::Rack.middleware.use Warden::Manager do |config|
  Devise.warden_config = config
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
anycable-rails-1.0.3 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.2 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.1 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.0 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.0.rc4 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.0.rc3 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.0.rc2 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt
anycable-rails-1.0.0.rc1 lib/generators/anycable/setup/templates/config/initializers/anycable.rb.tt