Sha256: fd886ed6f26cfed09037ed85c89f930189bdf791a121fab35a08f01e6ef6befc
Contents?: true
Size: 524 Bytes
Versions: 27
Compression:
Stored size: 524 Bytes
Contents
module CoalescingPanda class LtiNonce < ActiveRecord::Base validates :coalescing_panda_lti_account, :nonce, :timestamp, :presence => true validates :nonce, uniqueness: {scope: :coalescing_panda_lti_account} belongs_to :coalescing_panda_lti_account, :class_name => 'CoalescingPanda::LtiAccount' attr_accessible :nonce, :timestamp end def cleanup CoalescingPanda::LtiNonce.where("coalescing_panda_lti_account_id = ? AND timestamp < ?", b.coalescing_panda_lti_account.id, 15.minutes.ago) end end
Version data entries
27 entries across 27 versions & 1 rubygems