Skip to content
A Rails engine providing batch processing functionality for the Duke Digital Repository.
Ruby HTML Other
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db/migrate
lib
spec
.gitignore
.rspec
.ruby-version
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
ddr-batch.gemspec

README.md

ddr-batch

A Rails engine providing batch processing functionality for the Duke Digital Repository.

Installation

Add to your application's Gemfile:

gem 'ddr-batch'

and

bundle install

Configuration

User model

Include Ddr::Batch::BatchUser in app/models/user.rb.

class User < ActiveRecord::Base

  # DO NOT REMOVE:
  # Blacklight::User
  # Ddr::Auth::User
  #
  include Ddr::Batch::BatchUser

end

Ability class

Add Ddr::Batch::BatchAbilityDefinitions to the list of ability_definitions.

class Ability < Ddr::Auth::Ability

  self.ability_definitions += [ Ddr::Batch::BatchAbilityDefinitions ]

end

Migrations

Install the ddr-batch migrations:

rake ddr_batch:install:migrations

then

rake db:migrate

rake db:test:prepare

You can’t perform that action at this time.