Sha256: ea96610dd1bb4c8d059cfc511da344a712cc7995551dafd8b64181084735064e
Contents?: true
Size: 547 Bytes
Versions: 3
Compression:
Stored size: 547 Bytes
Contents
require 'blacklight' require 'blacklight_oai_provider' require 'rails' module BlacklightOaiProvider class Engine < Rails::Engine # Do these things in a to_prepare block, to try and make them work # in development mode with class-reloading. The trick is we can't # be sure if the controllers we're modifying are being reloaded in # dev mode, if they are in the BL plugin and haven't been copied to # local, they won't be. But we do our best. config.to_prepare do BlacklightOaiProvider.inject! end end end
Version data entries
3 entries across 3 versions & 1 rubygems