Sha256: 4321af6f6064826f942e36e3829fd90710b6de7ed4c1342a5518daf768c94416

Contents?: true

Size: 264 Bytes

Versions: 83

Compression:

Stored size: 264 Bytes

Contents

module ActiveFedora
  class FilesHash < AssociationHash
    def initialize(model)
      @base = model
    end

    def reflections
      @base.class.child_resource_reflections
    end

    def keys
      reflections.keys + @base.undeclared_files
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
active-fedora-10.0.0.beta4 lib/active_fedora/files_hash.rb
active-fedora-10.0.0.beta3 lib/active_fedora/files_hash.rb
active-fedora-10.0.0.beta2 lib/active_fedora/files_hash.rb
active-fedora-10.0.0.beta1 lib/active_fedora/files_hash.rb
active-fedora-9.13.0 lib/active_fedora/files_hash.rb
active-fedora-9.12.0 lib/active_fedora/files_hash.rb
active-fedora-9.11.0 lib/active_fedora/files_hash.rb
active-fedora-9.10.4 lib/active_fedora/files_hash.rb
active-fedora-9.10.3 lib/active_fedora/files_hash.rb
active-fedora-9.10.2 lib/active_fedora/files_hash.rb
active-fedora-9.10.1 lib/active_fedora/files_hash.rb
active-fedora-9.10.0 lib/active_fedora/files_hash.rb
active-fedora-9.10.0.pre2 lib/active_fedora/files_hash.rb
active-fedora-9.10.0.pre1 lib/active_fedora/files_hash.rb
active-fedora-9.9.1 lib/active_fedora/files_hash.rb
active-fedora-9.9.0 lib/active_fedora/files_hash.rb
active-fedora-9.8.2 lib/active_fedora/files_hash.rb
active-fedora-9.8.1 lib/active_fedora/files_hash.rb
active-fedora-9.8.0 lib/active_fedora/files_hash.rb
active-fedora-9.7.1 lib/active_fedora/files_hash.rb