# Stick this in a model, and enjoy. Or don't. Actually don't. This was
# written as a crazy experiment all about coulda, not about shoulda.
class ActiveRecord::Base
def current_user
ObjectSpace.each_object(ApplicationController) do |found_obj|
return found_obj.send!(:current_user) if found_obj.respond_to?(:current_user)
end
end
end