lib/roda/session_middleware.rb in roda-3.22.0 vs lib/roda/session_middleware.rb in roda-3.23.0

- old
+ new

@@ -148,14 +148,21 @@ def load! @data ||= @req.send(:_load_session) end end + module RequestMethods + # Work around for if type_routing plugin is loaded into Roda class itself. + def _remaining_path(_) + end + end + # Setup the middleware, passing +opts+ as the Roda sessions plugin options. def initialize(app, opts) mid = Class.new(Roda) mid.plugin :sessions, opts @req_class = mid::RodaRequest + @req_class.send(:include, RequestMethods) @app = app end # Initialize the session hash in the environment before calling the next # application, and if the session has been loaded after the result has been