Class: Hyrax::DefaultMiddlewareStack

Inherits:
Object
  • Object
show all
Defined in:
app/services/hyrax/default_middleware_stack.rb

Class Method Summary collapse

Class Method Details

.build_stackObject

rubocop:disable Metrics/MethodLength



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'app/services/hyrax/default_middleware_stack.rb', line 4

def self.build_stack
  ActionDispatch::MiddlewareStack.new.tap do |middleware|
    middleware.use Hyrax::Actors::TransactionalRequest
    middleware.use Hyrax::Actors::OptimisticLockValidator
    middleware.use Hyrax::Actors::CreateWithRemoteFilesActor
    middleware.use Hyrax::Actors::CreateWithFilesActor
    middleware.use Hyrax::Actors::CollectionsMembershipActor
    middleware.use Hyrax::Actors::AddToWorkActor
    middleware.use Hyrax::Actors::AttachMembersActor
    middleware.use Hyrax::Actors::ApplyOrderActor
    middleware.use Hyrax::Actors::InterpretVisibilityActor
    middleware.use Hyrax::Actors::TransferRequestActor
    middleware.use Hyrax::Actors::DefaultAdminSetActor
    middleware.use Hyrax::Actors::ApplyPermissionTemplateActor
    middleware.use Hyrax::Actors::CleanupFileSetsActor
    middleware.use Hyrax::Actors::CleanupTrophiesActor
    middleware.use Hyrax::Actors::FeaturedWorkActor
    middleware.use Hyrax::Actors::ModelActor
    middleware.use Hyrax::Actors::InitializeWorkflowActor
  end
end