Sha256: 2cc0b8e6044ffd39eed751d03b166048827e7605aced05c23a6261398a034b02

Contents?: true

Size: 295 Bytes

Versions: 2

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
anycable-rails-1.0.0.preview2 lib/rails/generators/anycable/setup/templates/config/initializers/anycable.rb
anycable-rails-1.0.0.preview1 lib/rails/generators/anycable/setup/templates/config/initializers/anycable.rb