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