Sha256: 9ec146ccd3de71156bc33c81d2941222cf3192d391c8e9885138495021f0ae43
Contents?: true
Size: 1.71 KB
Versions: 1
Compression:
Stored size: 1.71 KB
Contents
require "sufia/version" require 'blacklight' require 'blacklight_advanced_search' require 'hydra/head' require 'hydra-batch-edit' require 'resque/server' require 'mailboxer' require 'acts_as_follower' require 'paperclip' require 'will_paginate' require 'nest' require 'RMagick' require 'activerecord-import' require 'rails_autolink' autoload :Zip, 'zipruby' module Sufia extend ActiveSupport::Autoload autoload :Resque, 'sufia/queue/resque' attr_accessor :queue class Engine < ::Rails::Engine engine_name 'sufia' config.queue = Sufia::Resque::Queue config.ffmpeg_path = 'ffmpeg' config.fits_message_length = 5 config.autoload_paths << File.expand_path("../sufia/jobs", __FILE__) initializer "Patch active_fedora" do require 'sufia/active_fedora/redis' end initializer "Patch kaminari" do require "kaminari/helpers/tag" end initializer "Patch active_record" do require 'sufia/active_record/redis' end end class ResqueAdmin def self.matches?(request) current_user = request.env['warden'].user return false if current_user.blank? # TODO code a group here that makes sense #current_user.groups.include? 'umg/up.dlt.scholarsphere-admin' end end def self.config(&block) @@config ||= Sufia::Engine::Configuration.new yield @@config if block return @@config end def self.queue @queue ||= config.queue.new('sufia') end autoload :GenericFile autoload :Controller autoload :Utils autoload :User autoload :ModelMethods autoload :Noid autoload :IdService autoload :HttpHeaderAuth autoload :SolrDocumentBehavior autoload :FilesControllerBehavior autoload :DownloadsControllerBehavior end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-0.0.3 | lib/sufia.rb |