Module: Coroutine::ActsAsCurrent

Defined in:
lib/acts_as_current/base.rb,
lib/acts_as_current/class_methods.rb,
lib/acts_as_current/instance_methods.rb

Overview

This module is an acts_as extension that teaches an ActiveRecord model how to provide a reference to the instance owned by the current thread through a class method.

The module includes class methods and instance methods that simplify the process of storing the current reference in a thread safe manner.

Because acts_as_current relies on the Thread.current hash, it should probably be used sparingly.

Defined Under Namespace

Modules: Base, ClassMethods, InstanceMethods