Class: OpenidNonce

Inherits:
OpenidAbstract show all
Defined in:
app/models/openid_nonce.rb

Class Method Summary collapse

Class Method Details

.exists_by_target?(timestamp, salt, target) ⇒ Boolean

attempt to scan timestamps (integers) first for fast access.

Returns:

  • (Boolean)


4
5
6
# File 'app/models/openid_nonce.rb', line 4

def self.exists_by_target?(timestamp, salt, target)
  where(:timestamp => timestamp, :target => target).size > 0
end