Sha256: 858d2a99aeeabdc3e53b206322528817829928dd4ac0093b0232226f55da663f
Contents?: true
Size: 556 Bytes
Versions: 14
Compression:
Stored size: 556 Bytes
Contents
module SwitchUser module Provider class Dummy < Base def initialize(controller) @user = nil end def login(user, scope = nil) @user = user end def logout(scope = nil) @user = nil end def current_user(scope = nil) @user end def original_user @original_user end def remember_current_user(remember) if remember @original_user = current_user else @original_user = nil end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems