cordage
Flexible record based associations in ActiveFedora models.
Cordage creates a one-way association between an ActiveFedora object and an ActiveRecord object.
Install
gem install cordage
Example
# app/models/user.rb
class User < ActiveRecord::Base
end
# app/models/video.rb
class Video < ActiveFedora::Base
cordage :managers, class_name: 'User'
end
# app/controllers/videos_controller.rb
video = Video.new
video.managers << User.first
video.save
Options
cordage :managers,
class_name: 'User', # required if different than association name
primary_key: 'id', # optional