Sha256: a60a2920582f1ffd5f29f5b4591f790feee828483fb813d6b08419b49e701e15

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

# ActiveFedora::Aggregation

Aggregations for ActiveFedora.

### Example
```ruby
class GenericFile < ActiveFedora::Base
end

generic_file1 = GenericFile.create
generic_file2 = GenericFile.create

class Image < ActiveFedora::Base
  aggregates :generic_files
end

image = Image.create
image.generic_files = [generic_file2, generic_file1]
image.save

```

Now the "generic\_files" method returns an ordered list of GenericFile objects.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activefedora-aggregation-0.1.0 README.md