Class: Hyrax::Actors::ApplyOrderActor

Inherits:
AbstractActor show all
Defined in:
app/actors/hyrax/actors/apply_order_actor.rb

Instance Attribute Summary

Attributes inherited from AbstractActor

#next_actor

Instance Method Summary collapse

Methods inherited from AbstractActor

#initialize

Constructor Details

This class inherits a constructor from Hyrax::Actors::AbstractActor

Instance Method Details

#update(env) ⇒ Boolean

Returns true if update was successful.

Parameters:

Returns:

  • (Boolean)

    true if update was successful



7
8
9
10
11
12
# File 'app/actors/hyrax/actors/apply_order_actor.rb', line 7

def update(env)
  ordered_member_ids = env.attributes.delete(:ordered_member_ids)
  sync_members(env, ordered_member_ids) &&
    apply_order(env.curation_concern, ordered_member_ids) &&
    next_actor.update(env)
end