Cross Reference: action_worker.rb
xref
: /
ontohub
/
lib
/
action_worker.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
require
'
sidekiq
/
worker
'
class
ActionWorker
<
BaseWorker
def
perform
(
action_id
,
klass
,
method
, *
args
)
action
=
Action.find
(
action_id
)
action.register
_start_of_action
action.resource
=
klass.constantize.send
(
method
, *
args
)
action.save
!
end
end