lib/roda/plugins/sessions.rb in roda-3.16.0 vs lib/roda/plugins/sessions.rb in roda-3.17.0
- old
+ new
@@ -146,13 +146,9 @@
# Exception class used when creating a session cookie that would exceed the
# allowable cookie size limit.
class CookieTooLarge < RodaError
end
- def self.load_dependencies(app, opts=OPTS)
- app.plugin :_after_hook
- end
-
# Split given secret into a cipher secret and an hmac secret.
def self.split_secret(name, secret)
raise RodaError, "sessions plugin :#{name} option must be a String" unless secret.is_a?(String)
raise RodaError, "invalid sessions plugin :#{name} option length: #{secret.bytesize}, must be >=64" unless secret.bytesize >= 64
hmac_secret = secret = secret.dup.force_encoding('BINARY')