Sha256: 96d9aaa1a0603ddefe89e4f046b51faa5a9652b9b316d8b0a7fdd9defe5b834e

Contents?: true

Size: 254 Bytes

Versions: 18

Compression:

Stored size: 254 Bytes

Contents

module ZeroOidFix
  extend ActiveSupport::Concern

  module ClassMethods
    def serialize_from_session(key, salt)
      record = to_adapter.get((key[0]["$oid"] rescue nil))
      record if record && record.authenticatable_salt == salt
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
mongoid-forums-1.0.7 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-1.0.6 test/dummy/app/models/concerns/zero_oid_fix.rb
ack-mongoid-forums-1.0.6.1 test/dummy/app/models/concerns/zero_oid_fix.rb
ack-mongoid-forums-1.0.6 test/dummy/app/models/concerns/zero_oid_fix.rb
ack-mongoid-forums-1.0.5 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-1.0.4 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-1.0.3 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-1.0.2 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-1.0.1 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-1.0.0 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.11 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.10 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.9 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.5 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.4 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.3 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.2 test/dummy/app/models/concerns/zero_oid_fix.rb
mongoid-forums-0.0.1 test/dummy/app/models/concerns/zero_oid_fix.rb