Skip to content

Instantly share code, notes, and snippets.

@Peeja
Created February 5, 2009 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Peeja/58847 to your computer and use it in GitHub Desktop.
Save Peeja/58847 to your computer and use it in GitHub Desktop.
# How does that session value get set!?
require 'metaid'
@response.session.metaclass.class_eval do
def []=(k,v)
puts "Setting session[#{k.inspect}] = #{v.inspect} (#{caller[0]})"
super
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment