Sha256: d52eff988487a1c981734ced8ebb1460ec24684c947bc2819e4e25df0684bedb

Contents?: true

Size: 387 Bytes

Versions: 14

Compression:

Stored size: 387 Bytes

Contents

module SwitchUser
  module Provider
    class Clearance < Base
      def initialize(controller)
        @controller = controller
      end

      def login(user, scope = nil)
        @controller.sign_in(user)
      end

      def logout(scope = nil)
        @controller.sign_out
      end

      def current_user(scope = nil)
        @controller.current_user
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
switch_user-1.5.0 lib/switch_user/provider/clearance.rb
switch_user-1.4.0 lib/switch_user/provider/clearance.rb
switch_user-1.3.1 lib/switch_user/provider/clearance.rb
switch_user-1.3.0 lib/switch_user/provider/clearance.rb
switch_user-1.2.1 lib/switch_user/provider/clearance.rb
switch_user-1.2.0 lib/switch_user/provider/clearance.rb
switch_user-1.1.0 lib/switch_user/provider/clearance.rb
switch_user-1.0.2 lib/switch_user/provider/clearance.rb
switch_user-1.0.1 lib/switch_user/provider/clearance.rb
switch_user-1.0.0 lib/switch_user/provider/clearance.rb
switch_user-0.9.5 lib/switch_user/provider/clearance.rb
switch_user-0.9.4 lib/switch_user/provider/clearance.rb
switch_user-0.9.3 lib/switch_user/provider/clearance.rb
switch_user-0.9.2 lib/switch_user/provider/clearance.rb