Module: ActiveFedora::Scoping

Extended by:
ActiveSupport::Autoload, ActiveSupport::Concern
Included in:
Base, File
Defined in:
lib/active_fedora/scoping/named.rb,
lib/active_fedora.rb,
lib/active_fedora/scoping.rb,
lib/active_fedora/scoping/default.rb

Overview

Active Fedora Named Scopes

Defined Under Namespace

Modules: ClassMethods, Default, Named Classes: ScopeRegistry

Instance Method Summary collapse

Instance Method Details

#initialize_internals_callbackObject

:nodoc:



41
42
43
44
# File 'lib/active_fedora/scoping.rb', line 41

def initialize_internals_callback # :nodoc:
  super
  populate_with_current_scope_attributes
end

#populate_with_current_scope_attributesObject

:nodoc:



33
34
35
36
37
38
39
# File 'lib/active_fedora/scoping.rb', line 33

def populate_with_current_scope_attributes # :nodoc:
  return unless self.class.scope_attributes?

  self.class.scope_attributes.each do |att, value|
    send("#{att}=", value) if respond_to?("#{att}=")
  end
end