lib/acfs/service/middleware.rb in acfs-0.14.0 vs lib/acfs/service/middleware.rb in acfs-0.15.0
- old
+ new
@@ -6,12 +6,12 @@
# middleware stack.
#
module Middleware
extend ActiveSupport::Concern
- def prepare(_) # :nodoc:
- self.class.middleware.call super
+ def prepare(request) # :nodoc:
+ self.class.middleware.call request
end
module ClassMethods
# Register a new middleware to be used for this service.
@@ -38,10 +38,10 @@
# Clear all registered middlewares.
#
def clear
@middleware = nil
- @middlewares = nil
+ @middlewares = []
end
end
end
end
end