Class: OpenidNonce
- Inherits:
-
OpenidAbstract
- Object
- ActiveRecord::Base
- OpenidAbstract
- OpenidNonce
- Defined in:
- app/models/openid_nonce.rb
Class Method Summary collapse
-
.exists_by_target?(timestamp, salt, target) ⇒ Boolean
attempt to scan timestamps (integers) first for fast access.
Class Method Details
.exists_by_target?(timestamp, salt, target) ⇒ Boolean
attempt to scan timestamps (integers) first for fast access.
4 5 6 |
# File 'app/models/openid_nonce.rb', line 4 def self.exists_by_target?(, salt, target) where(:timestamp => , :target => target).size > 0 end |