Apply automatic rubocop fixes
This commit is contained in:
@ -1,10 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class NonceStore
|
||||
def self.build_cache_key(nonce)
|
||||
"lti_nonce_#{nonce}"
|
||||
end
|
||||
|
||||
def self.add(nonce)
|
||||
Rails.cache.write(build_cache_key(nonce), Time.now, expires_in: Lti::MAXIMUM_SESSION_AGE)
|
||||
Rails.cache.write(build_cache_key(nonce), Time.zone.now, expires_in: Lti::MAXIMUM_SESSION_AGE)
|
||||
end
|
||||
|
||||
def self.delete(nonce)
|
||||
|
Reference in New Issue
Block a user