Sha256: b5634a987f460895ff205f4972a1d098d42c5f19854d68f7e79a4090ef24f0a8

Contents?: true

Size: 275 Bytes

Versions: 48

Compression:

Stored size: 275 Bytes

Contents

module PandaPal
  class ApplicationController < ActionController::Base
    around_action :share_controller_on_thread

    def share_controller_on_thread
      Thread.current[:controller] = self
      yield
    ensure
      Thread.current[:controller] = nil
    end
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
panda_pal-5.12.7 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.6 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.5 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.4 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.3 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.2 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.12.0 app/controllers/panda_pal/application_controller.rb
panda_pal-5.11.0 app/controllers/panda_pal/application_controller.rb
panda_pal-5.10.1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.10.0 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.8.beta1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.7 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.6 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.5 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.4 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.3 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.9.0 app/controllers/panda_pal/application_controller.rb
panda_pal-5.8.5 app/controllers/panda_pal/application_controller.rb