upr.git  about / heads / tags
Upload Progress for Rack
blob eccce4e8f0ae20dbd4f4177ebf47b83bb2b40dca 333 bytes (raw)
$ git show HEAD:examples/rails_app-2.3.4/app/controllers/application_controller.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
class ApplicationController < ActionController::Base
  # helper :all # include all helpers, all the time
  defined?($upr) or before_filter do
    # grab the backend in case we forget to set it (or if we're using DRb)
    defined?($upr) or ObjectSpace.each_object(Upr::InputWrapper) do |x|
      $upr ||= x.backend
    end
  end

end

git clone https://yhbt.net/upr.git