acurley / fedora_rails

FedoraRails enables select or all ActiveRecord objects to be serialized as XML and stored in a Fedora repository utilizing libraries from the Hydra framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Dependency Status Coverage Status Code Climate

FedoraRails

Installation

Into an existing rails app, add FedoraRails to the Gemfile

gem 'fedora_rails'
rails g fedora_rails:install

Adding FedoraRails to Rails app

For each ActiveRecord object that you wish to store in a Fedora repository, add the following just below the class definiton:

include FedoraRails::Concerns::Fedorable

This will mixin the ActiveSupport::Concern functionality to the object and provide all necessary methods and relationship to facilitate delivery to Fedora.

About

FedoraRails enables select or all ActiveRecord objects to be serialized as XML and stored in a Fedora repository utilizing libraries from the Hydra framework.

License:MIT License