Sha256: 4205a6d169a52d1df9e386638f1f29a74d21b778efbe9fc1916d64aaf8e37ccc
Contents?: true
Size: 333 Bytes
Versions: 2
Compression:
Stored size: 333 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
upr-0.3.0 | examples/rails_app-2.3.4/app/controllers/application_controller.rb |
upr-0.2.0 | examples/rails_app-2.3.4/app/controllers/application_controller.rb |