Skip to content

Configuring willow sword

Anusha Ranganathan edited this page Nov 12, 2018 · 1 revision

Willow sword offers a few configuration options. These are available in config/initializers/sword.rb

To override any of these configuration options, in your rails project

  • Create a file called willow_sword.rb at config/initializers

  • Copy just the settings you want to override.
    For example, to override the work models supported by Sword

    # config/initializers/willow_sword.rb
    # Overriding the default config values
    WillowSword.setup do |config|
      config.work_models = ['Dataset', 'JournalArticle', 'Work']
    end
    
Clone this wiki locally