Skip to content

Instantly share code, notes, and snippets.

@sentientmonkey
Created March 1, 2013 04:40
Show Gist options
  • Save sentientmonkey/5062530 to your computer and use it in GitHub Desktop.
Save sentientmonkey/5062530 to your computer and use it in GitHub Desktop.
class ApplicationController < ActionController::Base
protect_from_forgery
before_filter :log_params
private
def log_params
logger.debug "*********** Session Data ***********"
session.each do |k,v|
logger.debug "** #{k}: #{v}"
end
logger.debug "************************************"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment