Sha256: fa82c3ad24e9c0153ac7cd9941194347849c0f69fdf3f18e4372b0279d7383be

Contents?: true

Size: 275 Bytes

Versions: 4

Compression:

Stored size: 275 Bytes

Contents

module ActiveFedora
  class FilesHash < AssociationHash
    def initialize(model, reflections = nil)
      super
    end

    def reflections
      @base.class.child_resource_reflections
    end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
active-fedora-15.0.1 lib/active_fedora/files_hash.rb
active-fedora-15.0.0 lib/active_fedora/files_hash.rb
active-fedora-14.0.1 lib/active_fedora/files_hash.rb
active-fedora-14.0.0 lib/active_fedora/files_hash.rb