Sha256: 5e1388050eda5f5097b4b0e1e2f1dfe0b9b8998ae9e7b9906428ed184f71922a

Contents?: true

Size: 379 Bytes

Versions: 11

Compression:

Stored size: 379 Bytes

Contents

module ActiveFedora
  module Scoping
    extend ActiveSupport::Concern
    included do
      include Default
      include Named
    end

    module ClassMethods
      def current_scope #:nodoc:
        Thread.current["#{self}_current_scope"]
      end

      def current_scope=(scope) #:nodoc:
        Thread.current["#{self}_current_scope"] = scope
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
active-fedora-9.7.3 lib/active_fedora/scoping.rb
active-fedora-9.7.2 lib/active_fedora/scoping.rb
active-fedora-9.9.1 lib/active_fedora/scoping.rb
active-fedora-9.9.0 lib/active_fedora/scoping.rb
active-fedora-9.8.2 lib/active_fedora/scoping.rb
active-fedora-9.8.1 lib/active_fedora/scoping.rb
active-fedora-9.8.0 lib/active_fedora/scoping.rb
active-fedora-9.7.1 lib/active_fedora/scoping.rb
active-fedora-9.7.0 lib/active_fedora/scoping.rb
active-fedora-9.6.2 lib/active_fedora/scoping.rb
active-fedora-9.6.1 lib/active_fedora/scoping.rb