Sha256: 936ec1f3df963305e41b8ce34c214eeda91430866848d7aec2cf56cce7d2861f

Contents?: true

Size: 511 Bytes

Versions: 2

Compression:

Stored size: 511 Bytes

Contents

if defined?(::Rails::Engine)
  module Vidibus
    module User
      class Engine < ::Rails::Engine

        # Add warden to rack stack and use vidibus strategy.
        config.app_middleware.use ::Warden::Manager do |manager|
          manager.default_strategies :single_sign_on
          manager.default_scope = :user
          manager.failure_app = Vidibus::User.failure_app
        end

        config.after_initialize do
          Vidibus::User.logger = Rails.logger
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vidibus-user-1.0.1 lib/vidibus/user/railstie.rb
vidibus-user-1.0.0 lib/vidibus/user/railstie.rb