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.8.4 app/controllers/panda_pal/application_controller.rb
panda_pal-5.8.3 app/controllers/panda_pal/application_controller.rb
panda_pal-5.8.2 app/controllers/panda_pal/application_controller.rb
panda_pal-5.8.1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.8.0 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.12 app/controllers/panda_pal/application_controller.rb
panda_pal-5.7.0.beta2 app/controllers/panda_pal/application_controller.rb
panda_pal-5.7.0.beta1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.11 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.10 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.9 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.8 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.7 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.7.beta2 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.7.beta1 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.6 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.5 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.4 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.3 app/controllers/panda_pal/application_controller.rb
panda_pal-5.6.2 app/controllers/panda_pal/application_controller.rb