TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'hydra-admin-collections'
And then execute:
$ bundle
Add to your ActiveFedora models:
class GenericFile < ActiveFedora::Base
belongs_to_admin_collection
end
This gives you a #collection= and #collection methods which hold a Hydra::Admin::Collection
If you want to extend Hydra::Admin::Collection, just create that class and include the behavior module:
class Hydra::Admin::Collection < ActiveFedora::Base
include Hydra::Admin::CollectionBehavior
# your code goes here
end
Install hydra-jetty and start it up:
rake jetty:unzip
rake jetty:start
Generate the test app:
rake engine_cart:generate
Then run the test suite:
rake spec
Pull requests welcome, but please read CONTRIBUTING.md first.