Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Spew all the arguments/responses of any method call on the session st…

…ore.
  • Loading branch information...
commit 58ea2316e24b2c96e0f2076f7a42c48c06eb017e 1 parent 3419f21
@brianhempel authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 lib/mongo_session_store/mongo_store_base.rb
View
8 lib/mongo_session_store/mongo_store_base.rb
@@ -12,8 +12,14 @@ class MongoStoreBase < AbstractStore
def self.session_class
self::Session
end
-
+
+ def send(*args)
+ p args
+ super.tap { |result| puts "#{args.first}: #{result.inspect}" }
+ end
+
private
+
def session_class
self.class.session_class
end
Please sign in to comment.
Something went wrong with that request. Please try again.