Sha256: dc19a7ddd6eb137cef55f85f76e2c96af01683046236827b96799142c6be1b2a

Contents?: true

Size: 463 Bytes

Versions: 2

Compression:

Stored size: 463 Bytes

Contents

require "rails"

$:.unshift(File.join(File.dirname(__FILE__), "vidibus"))
require "user"

module Vidibus
  module User
    class Error < StandardError; end
    class NoRealmError < Error; end

    class Engine < ::Rails::Engine

      # Add warden to rack stack and use connector strategy.
      config.app_middleware.use Warden::Manager do |manager|
        manager.default_strategies :connector
        manager.default_scope = :user
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vidibus-user-0.0.10 lib/vidibus-user.rb
vidibus-user-0.0.9 lib/vidibus-user.rb