Sha256: 178990e8ac7f16e04250ca4f860d7ec65df277241b0806df590130e418fe9c69

Contents?: true

Size: 387 Bytes

Versions: 3

Compression:

Stored size: 387 Bytes

Contents

class UserSession < Authlogic::Session::Base
end

class BackOfficeUserSession < Authlogic::Session::Base
end

class WackyUserSession < Authlogic::Session::Base
  attr_accessor :counter
  authenticate_with User

  def initialize
    @counter = 0
    super
  end

  def persist_by_false
    self.counter += 1
    false
  end

  def persist_by_true
    self.counter += 1
    true
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authlogic-4.2.0 test/libs/user_session.rb
authlogic-4.1.1 test/libs/user_session.rb
authlogic-4.1.0 test/libs/user_session.rb