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-13.3.0 lib/active_fedora/files_hash.rb
active-fedora-12.2.4 lib/active_fedora/files_hash.rb
active-fedora-13.2.7 lib/active_fedora/files_hash.rb
active-fedora-13.2.5 lib/active_fedora/files_hash.rb
active-fedora-13.2.4 lib/active_fedora/files_hash.rb
active-fedora-12.2.3 lib/active_fedora/files_hash.rb
active-fedora-13.2.3 lib/active_fedora/files_hash.rb
active-fedora-13.2.2 lib/active_fedora/files_hash.rb
active-fedora-13.2.0 lib/active_fedora/files_hash.rb
active-fedora-13.1.3 lib/active_fedora/files_hash.rb
active-fedora-11.5.6 lib/active_fedora/files_hash.rb
active-fedora-12.2.2 lib/active_fedora/files_hash.rb
active-fedora-11.2.1 lib/active_fedora/files_hash.rb
active-fedora-12.2.1 lib/active_fedora/files_hash.rb
active-fedora-12.0.3 lib/active_fedora/files_hash.rb
active-fedora-11.5.5 lib/active_fedora/files_hash.rb
active-fedora-13.1.2 lib/active_fedora/files_hash.rb
active-fedora-13.1.1 lib/active_fedora/files_hash.rb
active-fedora-13.1.0 lib/active_fedora/files_hash.rb
active-fedora-13.0.0 lib/active_fedora/files_hash.rb