Permalink
Browse files

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

…ore.
  • Loading branch information...
1 parent 3419f21 commit 58ea2316e24b2c96e0f2076f7a42c48c06eb017e @brianhempel committed Apr 6, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 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

0 comments on commit 58ea231

Please sign in to comment.