lib/fernet/configuration.rb in fernet-1.6 vs lib/fernet/configuration.rb in fernet-2.0.rc1
- old
+ new
@@ -9,17 +9,12 @@
# How long messages are considered valid to the verifier
# (an integer in seconds)
attr_accessor :ttl
- # Whether to encrypt the payload
- # (true or false)
- attr_accessor :encrypt
-
def self.run
self.instance.enforce_ttl = true
self.instance.ttl = 60
- self.instance.encrypt = true
yield self.instance if block_given?
end
class << self
def method_missing(method)